Viva Java Notes
Viva Java Notes
it handles all types of requests form client and decided which controler to send a partuclar request
and rends thje response from controller to view resolver
view resolver decides privdes mapping between view names and actiual view
* disadvantages of jdbc
exception handling is big issues - need to write multiple nested try catch blocks
it can also be retrieved from db and marked for deletion by an entity manager method - removed
detached - represents entity objects which are disconnected from entity manager
* what is entity
it represents tbale in
* bean
any obj, which is instatntiated, controlled or assembled by spring IoC contrainers
to cerate the actual obj we us config class - obj created using new keyword
validator annotation
* transactional annotation
if another mehtod calls current methos - by using this annotation the other mthod get option to come
sin between the ongoing process
* microserver is a collection of small autonomous services that can either work independentyl or as a
collection
a kind of architecture
language neutral
the extender class has higher priority than interface - 3rd rule of java
* java 8
also, the method created with default keyword with default keyword isn't abstract - it can be funcitonal
interface
lambda expression
if there is only one abs metho it become functional method
() -> {}
@model attribute
model attribute reads data in the existing model and loads JSP
it can be used to inject data object in the model before JSP loads
this annotation maps http requests to handler methods of MVC and Rest contorllers