Last active
April 5, 2020 13:30
-
-
Save ksundong/a5b4bb1d09129e475010353882e21992 to your computer and use it in GitHub Desktop.
자주 쓰는 설정 및 의존성(개발용)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #h2 DB inmemeory database | |
| spring.datasource.url=jdbc:h2:mem:<db명> | |
| spring.datasource.driverClassName=org.h2.Driver | |
| spring.datasource.username=sa | |
| spring.datasource.password= | |
| # enable h2 console | |
| spring.h2.console.enabled=true | |
| spring.h2.console.path=/h2-console | |
| # 로그레벨 설정 | |
| logging.level.root=DEBUG | |
| logging.level.sql=DEBUG | |
| # 파일 로깅 설정 | |
| # logging.file.name=./logs/<log_name>.log | |
| # jasypt 설정 | |
| # jasypt.encryptor.bean=jasyptStringEncryptor | |
| # handlebar 설정 | |
| handlebars.suffix=.html | |
| handlebars.cache=false | |
| # handlebar에서 HttpSession 데이터를 접근하기 위한 설정 | |
| handlebars.expose-session-attributes=true | |
| #static resource가 갱신되었을 때, live reload를 적용해주기 위한 설정 | |
| spring.resources.static-locations=file:src/main/resources/static | |
| # URL에 jsessionId가 추가되는 이슈를 해결하는 설정 | |
| server.servlet.session.tracking-modes=cookie | |
| # profile 설정 | |
| spring.profiles.active=local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' | |
| implementation 'org.springframework.boot:spring-boot-starter-web' | |
| implementation 'io.springfox:springfox-swagger2:2.9.2' | |
| implementation 'io.springfox:springfox-swagger-ui:2.9.2' | |
| runtimeOnly 'com.h2database:h2:1.4.200' | |
| developmentOnly 'org.springframework.boot:spring-boot-devtools' | |
| testImplementation('org.springframework.boot:spring-boot-starter-test') { | |
| exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' | |
| } | |
| testImplementation 'org.assertj:assertj-core:3.15.0' | |
| implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.2' | |
| implementation 'pl.allegro.tech.boot:handlebars-spring-boot-starter:0.3.0' | |
| } | |
| test { | |
| useJUnitPlatform() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment