How-to articles, tricks, and solutions about SPRING-BOOT
To add a context path to a Spring Boot application, you can use the server.context-path property in the application's application.properties file.
To log SQL statements in Spring Boot, you can configure the logging level of the org.hibernate.SQL logger to DEBUG or TRACE.
To access a value defined in the application.properties file in Spring Boot, you can use the @Value annotation and the Environment interface.
To configure the port for a Spring Boot application, you can use the server.port property in the application's configuration file. The configuration file can be a application.properties file in the classpath, or a application.yml file in the classpath.
To return a JSON object as a response in Spring Boot, you can use the @ResponseBody annotation and the ObjectMapper class.
To set the active profile and the configuration location from the command line in Spring Boot, you can use the spring.profiles.active and spring.config.name properties.
If you are seeing the error "Cannot determine embedded database driver class for database type NONE" in a Spring Boot application, it means that the application is trying to auto-configure an embedded database, but it is unable to determine which database
The error "Error creating bean with name 'dataSource' defined in class path resource" in Spring Boot typically indicates that there is a problem with the configuration of the dataSource bean.
To use multiple external configuration files with Spring Boot, you can use the spring.config.name property to specify the names of the configuration files.