Create a project with dependency web along with"security" in it In the main application enable the security dependency using annotation @EnableWebSecurity Now create a package with a name "springconfig" and inside that create a class "SpringConfiguration". Annotate it as a @Configuration Extent the WebSecuriyConfigurationAdaptor and override two methods with the same name (configure) but with … Continue reading springboot-basic-security
Tag: Java
SpringBoot RestCrud App
Visit http://start.spring.io and initialize project with below dependencies: Spring Web Spring Data Jpa: manage sql queries Mysql Driver: connect to db Projectlombok : auto configuring getter setter and constructor in Entity Devtools: auto restart the application on changes Thymeleaf: engine for creating frontend (avoid if frontend is not required and app can be tested by … Continue reading SpringBoot RestCrud App
Hibernate Introduction
Hibernate Overview Topics What is Hibernate?Benefits of HibernateCode Snippets What is Hibernate? A framework for persisting/ saving java objects into a databasewww.hibernate.org At high level you will have Java Application, it will make use of Hibernate framework for saving and retrieving data from the database. Benefits of Hibernate Hibernate handles all the low-level SQLMinimize the … Continue reading Hibernate Introduction