What is spring boot ?
Explain dependency Injection ?
Ecplain Iversion of control ?
What is spring context ?
-It looks at the class files of the source code (the spring beans ), then looks at the configuration of the context and wires up the environment .
How to create Spring Boot application using Maven?
There are multiple approaches to create Spring Boot project. We can use any of the following approach to create application.
• Spring Maven Project , Spring Starter Project Wizard ,Spring Initializr, Spring Boot CLI
Spring Boot Advantages ?
Spring boot features ?
What happens in the background when a Spring Boot Application is “Run as Java Application”?
When a Spring Boot application is executed as “Run as Java application”, then it automatically launches up the tomcat server as soon as it sees, that you aresta developing a web application.
Spring boot starters
They aredependency management providers which can be used in the application to enable dependencies.
These starters, make development easy and rapid.
• spring-boot-starter: –It includes logging, auto-configuration support, and YAML( can be used instead of the propreties file and used for configuration files ).
• spring-boot-starter-jdbc –This starter is used for HikariCP connection pool with JDBC
• spring-boot-starter-web –Is the starter for building web applications
• spring-boot-starter-data-jpa –Is the starter to use Spring Data JPA with Hibernate
• spring-boot-starter-security –Is the starter used for Spring Security
• spring-boot-starter-test:Is the starter for testing Spring Boot applications
==> Connection pools : Connection pools are essentially a cache of open database connections. Once you open and use a database connection instead of closing it you add it back to the pool. When you go to fetch a new connection, if there is one available in the pool, it will use that connection instead of establishing another.
==> HikariCPis a very fast lightweight Java connection pool.
what is hibernate ?
Hibernate is a Java framework that simplifies the development of Java application to interact with the database.
It is an open source ORM (Object Relational Mapping) tool. Hibernate implements the specifications of JPA for data persistence.
+: open source,fast performance ,database independent query, automatic table creation …
What is servlet container support ?
Hibernate is a Java framework that simplifies the development of Java application to interact with the database.
It is an open source ORM (Object Relational Mapping) tool. Hibernate implements the specifications of JPA for data persistence.
+: open source,fast performance ,database independent query, automatic table creation …
What is thymleaf ?
Thymeleaf is a server-side Java template engine used for web applications,
To use Thymeleaf, we need to add the dependency in the pom.xml file
What is Spring Initilizr ?
It is a web tool provided by Spring. With the help of this tool, you can create Spring Boot projects by just providing project details
@RestController annotation :
It is used to create RESTful web services using Spring MVC. SpringRestControllertakes care of mapping request data to the defined request handler method.
@Controller+ @ResponseBody
Controllers are identified with the RestController annotation
@RequestMapping annotation :
It is used to provide the routing information and tells to Spring that any HTTP request must be mapped to the respective method.
What is JPA ?
It is aJava specification for managingrelationaldata in Java applications. It allows us to access and persist data between Java object/ class and relational database. JPA followsObject-Relation Mapping(ORM).