java - Understanding Spring Boot Usage and Configuration -


i trying understand how configure spring boot. these tutorials , this make reference called application.properties. i'm assuming that file , if so, go , there template set up?

i see different configurations can specify , pick , choose ones need.

i setup logback in program , set logging level. tutorial says spring boot provides base config so:

<configuration>     <include resource="org/springframework/boot/logging/logback/base.xml"/>     <logger name="org.springframework.web" level="debug"/> </configuration> 

but have no idea put that. in application.properties? in pom.xml?

stick application.properties in src/main/resources. prefer use .yml files alternative format. can find many spring boot properties (including logging properties) here: https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html

spring boot auto configure dependency declare in maven sensible defaults. can override of default settings in application file.


Comments