Posts
Q&A
์๋์ฐ์์ gradle๋ก ๋น๋ํ์๋ ค๋ ๋ถ๊ป ๊ณต์ ๋๋ฆฝ๋๋ค.
๋งจ ์์ ๊ณต์ ํด์ฃผ์ ๊ฑฐ ๋ณด๊ณ ์ฐธ๊ณ ํด์ ์ ๋ฆฌํ build.gradle ํ์ผ ์์ค ์ ๋๋ค. repositories ์ gradlePluginPortal() ์ด๊ฑธ ์ถ๊ฐํด์ค์ผ ํฉ๋๋ค. plugins { id 'org.springframework.boot' version '2.5.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' id "com.github.node-gradle.node" version "3.1.0"}group = 'me.bingbingpa'version = '0.0.1-SNAPSHOT'sourceCompatibility = '11'configurations { compileOnly { extendsFrom annotationProcessor }}repositories { mavenCentral() gradlePluginPortal()}dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-mail' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'com.h2database:h2' runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' // npm implementation 'com.github.node-gradle:gradle-node-plugin:3.1.0' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test'}test { useJUnitPlatform()}node { version = '16.3.0' download = true nodeModulesDir = file("${projectDir}/src/main/resources/static")}task copyFrontLib(type: Copy) { from "${projectDir}/src/main/resources/static" into "${projectDir}/build/resources/main/static/."}copyFrontLib.dependsOn npmInstallcompileJava.dependsOn copyFrontLib
- 6
- 2
- 1.2K
Q&A
postgres ๊ด๋ จ ๊ณต๊ฐ ์ฟผ๋ฆฌ ๊ฐ๋ฅ ์ฌ๋ถ ์ง๋ฌธ์ ๋๋ค.
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค!!!
- 0
- 2
- 1.2K
Q&A
<์ฐธ๊ณ > hateoas๊ฐ 1.0.2 ๊ฐ ๋๋ฉด์ ๋ฐ๋๋ถ๋ถ์ด ์๋ค์..
์๋ ํ์ธ์. ๋ฐฉ๊ธ ๊ฐ์๋ฅผ ๋ค ๋ค์๋๋ฐ์. ํน์ ํ์ํ์ ๋ถ๋ค์ด ์์๊น๋ด hateoas ๊ด๋ จ ๋ฐ๋ ๋ถ๋ถ๋ค ์ ์ฉํ ์์ค๋ฅผ ๊ณต์ ๋๋ฆฝ๋๋ค. ์ ๋ maven๋์ gradle์ ์ฌ์ฉํ์๊ณ spring-boot 2.2.1 ๋ฒ์ ์ ์ฌ์ฉํ์ต๋๋ค. ๋ฐ๋ ๋ถ๋ถ๋ค ๊ด๋ จํด์๋ ํฌ์คํ ์ ํ๋ ค๋ค๊ฐ ์์ ๋งํฌ์ฃผ์ ๋ฌธ์์ ์ ๋์ ์๊ธธ๋ ์์ค๋ง ๊ณต์ ๋๋ฆฝ๋๋ค. ํน์ ์๋ชป ์ฌ์ฉํ ๋ถ๋ถ๋ค์ด ์๋ค๋ฉด ์๋ ค์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. https://github.com/bingbingpa/spring-rest-api
- 34
- 6
- 554