Spring Boot Sample project for https://4urdev.tistory.com
# sudo mkdir /log
# sudo chown {account_id} /log
spring.datasource.url={url}
spring.datasource.username={id}
spring.datasource.password={password}
c:/dev/config.properties
~/env/config.properties
profile | Description |
---|---|
log-windows | Write log files in c:/dev/log/spring |
log-linux | Write log files in /log/spring |
log-jdbc | Show(Write) jdbc logs |
log-file | Write logs in files |
log-console | Show logs in console(std-out) |
To run on Tomcat, run Maven build this project, in /target foler, SpringBootSampleWeb.war file copy to 'webapp' folder for Tomcat.