Spring Boot MVC has brought some cool stuff for spring developers.If you had used spring3 (MVC) we had to configure internalresourceviewresolver by our self in spring configuration file.Then write web.xml and load the spring configuration file on class path. The best part for moving to spring boot is to get rid of all the configuration stuff and just focus on…
sample application using spring boot ,SpringMVC,JPA,HIbernate. In previous tutorial you have seen how spring3 was intergrating jpa if you would like to revise again please http://www.shivapreals.tech/allpost/spring/spring-with-hibernate-jpa-integration/ Spring3 was great but it had some short coming.In Spring3 we were supposed to declare beans like data source,jpavendoradapter.
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.h2.Driver" />
<property name="url" value="jdbc:h2:~/test" />
<property name="username" value="" />
<property name="password" value="" />
Benefits of Spring Boot: It removes boiler plate code such as configuring database,datasource. It…