Skip to content

Simplify-study/SpringExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootExample

Create and access authority

Create Log folder

# sudo mkdir /log

access authority

# sudo chown {account_id} /log

Database Configuration

Contents

spring.datasource.url={url}
spring.datasource.username={id}
spring.datasource.password={password}

Windows

c:/dev/config.properties

Linux

~/env/config.properties

Run Spring boot with spring profile

Available Profiles

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)

Run Script

java -jar -Dspring.profiles.active=log-linux,log-jdbc,log-file ./SpringExample.jar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages