How to enable Hibernate logs in Spring Boot
In Spring boot, hibernate logs should be enabled to debug the database connection and SQL query execution. By default hibernates logs are disabled in spring boot application. The hibernate logs…
In Spring boot, hibernate logs should be enabled to debug the database connection and SQL query execution. By default hibernates logs are disabled in spring boot application. The hibernate logs…
The Circular view path error in spring boot occurs when the request mapping url and the model view url are the same in a rest controller method and no ViewResolver…
@Value spring boot annotation is used to inject values from the properties file into the java variables that have been configured. The @Value annotation in spring boot is used to…
In this post, we will see how to create two login form in a login page using spring boot security in java. The spring boot security module is used to…
OAuth 2 is a widely-used open standard authorization protocol that enables applications to secure access to user data. This blog post provides an overview of OAuth 2 and its basic…
Single sign-on (SSO) is a feature that allows users to log in to multiple applications with a single set of credentials, eliminating the need to remember multiple usernames and passwords.…
In Spring Boot Security, we will discuss how to create multiple login pages using spring boot security with database authentication and authorization for different users role such as admin, user…
The spring boot security login example with database authentication and authorization is explained with database credentials and UserDetailsService. The spring boot security authentication and authorization example with database credentials is…
In the spring boot, @Autowired injects object arrays and java collections. Java collections such as list, set, map, array are injected using the @Autowired annotation. Collections commonly used, such as…
In the spring boot, @Autowired annotation is used for dependency injection.In spring boot application, all loaded beans are eligible for auto wiring to another bean. The annotation @Autowired in spring…
In the Spring Boot MVC, the url contains query parameters. These query parameters are identified as request parameters. The request url contains query parameters. The spring boot identifies a request…
The spring boot error java.lang.IllegalArgumentException: Sources must not be empty occurs if the source class name is not specified in the SpringApplicationBuilder. When the spring boot application starts, this error…
The Spring Boot error "Web server failed to start. Port 8080 was already in use." arises when port 8080 is already assigned to another application or has not been released.…
To resolve the "application has no explicit mapping for /error, so you are seeing this as a fallback" error, you can take one of three approaches: identify and address loading…
Spring boot error Ambiguous mapping. Cannot map ‘basicErrorController’ method occurs when the url ‘/error’ url is configured in the request mapping annotation of the rest controller method. By default, “/error”…