Posts
Q&A
docker push ํ travis ci์ docker hub์ ๋ฆฌํ์งํ ๋ฆฌ๊ฐ ์๋ค๊ณ ๋์ค๋ค์ ์ ๊ทธ๋ด๊น์??
๊ฐ์ฌํฉ๋๋ค. ์ง์ง ์ด๋ฉ์ผ ์ธ์ฆํด์ผ ๋๋ค์ ใท ใท
- 0
- 6
- 540
Q&A
์ง์ฐ ๋ก๋ฉ ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์ง์ ์คํํด๋ดค์ต๋๋ค. (์ฌ์ง) (์ฌ์ง) item ํ๋ก์ ์ด๊ธฐํ๋ ์์๋๋ก ๋์์ง๋ง, ordeItem์ด ํ๋ก์ ์ด๊ธฐํ ๋๋ ์์ ์ด AAAAAAAAA ๋ฐ๋ก ๋ค๋ถํฐ ์์ํ๋๊ตฐ์!!. ๊ทธ๋ผ ์ด๊ธฐํ ๋๋ ์ด์ ๊ฐ orderItem -> new OrderItemDto(orderItem)์ ์ํด์ ์งํ๋๋๊ฑด๊ฐ์?
- 0
- 3
- 390
Q&A
Transaction์ ๊ดํด์ ์ง๋ฌธ๋๋ฆฝ๋๋ค.
์ ๊ธฐ๋ณธ ๋ฉ์ปค๋์ฆ์ด OSIV๊ฐ ์๋ค๊ณ ๊ฐ์ ํ๊ตฐ์! ๊ฐ์ฌํฉ๋๋ค ์ํ๋ ์ฐํ ์ฝ ์์ ์๋ดค์ต๋๋ค! ๋ง์๋์๋ ๋์ต๋๋ค ใ ใ ํญ์ ์น์ ํ๊ฒ ์ข์ ๊ฐ์ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค
- 2
- 3
- 258
Q&A
๊ฐ์ฌ๋ ์๋ฌ ์ง๋ฌธ์ ๋๋ค. ใ ใ
์ ๊ฐ์ฌํฉ๋๋ค! ์ ๊ฐ ๋ด๊ณณ์์ ์ฐพ๊ณ ์์ด๋ค์.. build ํ์ผ ๋ญ๊ฐ ๋ฌธ์ ์ง ์ฐพ์ผ๋ฉด์.. ๋นผ๋จน์๊ฒ ๋ฌธ์ ์ผ์ค์ด์ผ.. ํํํ๊ธด ํ์ง๋ง ๊ฐ์ฌํฉ๋๋ค ๊ฐ์ฌ๋!! ์ข์ ๊ฐ์ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค ใ ใ
- 1
- 3
- 2.5K
Q&A
๊ฐ์ฌ๋ ์๋ฌ ์ง๋ฌธ์ ๋๋ค. ใ ใ
build.gradle ํ์ผ์ ์ ์ ์ค์ ํ์ ๋๋ก ์ด๋ ๊ฒ ๋์์ต๋๋ค. ์๋๋ค๊ฐ ์๋ฌ๊ฐ ๋๋ค์ ใ . plugins { id 'org.springframework.boot' version '2.1.16.RELEASE' id 'java' } apply plugin: 'io.spring.dependency-management' ext["h2.version"] = "1.4.200" //h2 ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ฒ์ ์ง์ ext["hibernate.version"] = "5.4.20.Final" //ํ์ด๋ฒ๋ค์ดํธ ๋ฒ์ ์ง์ group = 'jpabook' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-devtools' implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.6' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' }
- 1
- 3
- 2.5K
Q&A
๊ฐ์ฌ๋ form ํ๊ทธ์ th:object์ ๋ํด์ ์ง๋ฌธ์ด ์์ต๋๋ค.
์ํ th:object์ ์๋๊ฒ์ ์๋ฒ๋จ์ผ๋ก ๋ณด๋ผ๋๋ ์ด๋ฆ์ด ํฌ๊ฒ ์๊ด์๊ตฐ์. ๊ฐ์ฌํฉ๋๋ค ! ใ ใ ํท๊ฐ๋ ธ๋๋ฐ ํด๊ฒฐ๋์ต๋๋ค.
- 1
- 2
- 345
Q&A
๊ฐ์ฌ๋ ํ๋ผ๋ฏธํฐ์์ ๋ฐ์ดํฐ ๋ฐ๋๊ฒ์ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
์ ๊ฐ์ฌํฉ๋๋ค.ใ ใ ๋๋ถ์ ์ข์ ๊ฐ์ ๋ฃ๊ณ ์์ต๋๋ค. ์ง๋ฌธ๋ ํด๊ฒฐํด์ ์์ด ์์ํ๋ค์ ใ ใ ใ ์ผ๋ฅธ ์๊ฐํด์ 2ํธ๋ ์ง์ฃผํ๊ฒ ์ต๋๋ค.
- 1
- 4
- 270
Q&A
๊ฐ์ฌ๋ ํ๋ผ๋ฏธํฐ์์ ๋ฐ์ดํฐ ๋ฐ๋๊ฒ์ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
๊ฐ์ฌ๋ ํ๊ฐ์ง ๋ ์ง๋ฌธ์ด ์์ต๋๋ค. ๋ง์ฝ ํ๋ผ๋ฏธํฐ๊ฐ (BookForm form)์ผ๋ @ModelAttribute("form") BookForm form ์์ model.addAttribute("form", form) //์๋์ผ๋ก ํธ์ถ๋๋ค๊ณ ํ์ จ๋๋ฐ ์ฌ๊ธฐ์ ํ ํ๋ฆฟ ๋ทฐํ๋ฉด์ผ๋ก๋ updateItemForm.html์ form์ด "form"์ ๋ด์์ ๋ณด๋ธ๋ค๊ณ ํ์ ๊ฑด ์ดํดํ์ต๋๋ค. (์ฌ์ง) ๊ทผ๋ฐ ์ฌ๊ธฐ์ ์ด ์ ์ updateItemForm.html์์ form์ผ๋ก ๋ด์์ ๋ฐ์ดํฐ๋ฅผ ๋ณด๋๋๋ฐ, ์ ์ฌ์ง์ฒ๋ผ ํ๋ผ๋ฏธํฐ ๋ณ์ form์ ์ด๋ฆ์ด ๊ฐ์์ ๋งค์นญ๋์ด์ ์ ์ฅ๋๋๊ฑด์ง, @ModelAttribute("form") BookForm form / form ์ด๋ฆ์ด ๊ฐ์์ ํท๊ฐ๋ฆฌ๋ค์. BookForm gg ๋ก ํด๋ gg.getName , gg.getPrice ๋ฑ๋ฑ์ด ์ ์คํ๋๋ค์. ์ด์ ๊ฐ ๊ถ๊ธํฉ๋๋ค. ๋ฌด์จ ์ด์ ๋ก updateItemForm.html์์ ๋์ด์ค๋ form์ด BookForm ์ ๋ณ์ form์ด ์ธ์ํ๋์ง..
- 1
- 4
- 270
Q&A
pom.xml ์ง๋ฌธ ์์ต๋๋ค.
์ ํด๊ฒฐํ์ต๋๋ค. pom.xml>maven> Reload project ํ๋๊น ๋ฉ์ด๋ธ ํ๊ฒฝ์ค์ ํ์ผ์ด ์๊ธฐ๋ค์. ์ฒ์์ ๋ญ๊ฐ ๋ฌธ์ ์ธ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง... ํด๊ฒฐํ์ต๋๋น
- 3
- 2
- 405