Skip to content

zzzzseong/spring-playground

Repository files navigation

spring-playground


Profile Setting


application-${Active profiles}.properties Run -> Edit Configurations -> Active profiles setting

application.properties

server.port=8182
server.shutdown=graceful

spring.application.name=spring-playground

# docker mysql
spring.jpa.hibernate.ddl-auto=validate
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=override
spring.datasource.username=override
spring.datasource.password=override

application-local.properties

spring.datasource.url=jdbc:mysql://localhost:3306/spring_playground
spring.datasource.username=playground
spring.datasource.password=playground

Build

./gradlew clean build ${options}
  • -Dorg.gradle.java.home=${java_home}: 특정 JDK 버전으로 빌드
  • -Dspring.profiles.active=${profile}: 특정 프로파일로 빌드

Run

# foreground
java -jar playground.jar --spring.profiles.active=${profile} --jasypt.encryptor.password=${password}

# background
nohup java -jar playground.jar --spring.profiles.active=${profile} --jasypt.encryptor.password=${password} > /dev/null 2>&1 &

About

스프링 놀이터

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published