1์๊ฐ๋ง์ ๋๋ด๋ spring boot rest api ์๋น์ค ๊ฐ๋ฐ
spring, spring boot ๋ฅผ ํ๋๋ ๋ชจ๋ฅด๋ ๊ฐ๋ฐ์๋ฅผ ์ํ spring boot ๋ก rest api ๋ฅผ ํ์๊ฐ๋ง์ ๋ง๋๋ ๋ฐฉ๋ฒ์ ๋ผ์ด๋ธ์ฝ๋ฉ์ผ๋ก ๋ณด์ฌ๋๋ฆฝ๋๋ค.
์๊ฐ์ 2,909๋ช
๋์ด๋ ์ด๊ธ
์๊ฐ๊ธฐํ ๋ฌด์ ํ
- ๋ฏธํด๊ฒฐ
@Controller ์์ฒญํ๋ ๋ฐฉ์์ ๋ํด ๊ถ๊ธํฉ๋๋ค.
์ง๋ฌธ์์ต๋๋ค!Controller์์ ๋ฐ์ดํฐ๋ฅผ ํด๋ผ์ด์ธํธ๋ก๋ถํฐ ์์ฒญ ๋ฐ์ ๋ @RequestBody, @RequestParam, @PathVariable, Dto๋ฅผ
spring-bootjpaswaggermybatis๋ฌธ์์ง
ใป
7๋ฌ ์
1
44
2
- ๋ฏธํด๊ฒฐ
H2 ์ ์ ์๋ฌ
๊ฐ์ ๋ด์ฉ์ ๋ํด ์ง๋ฌธํด ์ฃผ์ธ์์๋ฌ๊ฐ ๋ ๊ฒฝ์ฐ ๋ณธ์ธ ์ฝ๋๊ฐ ์๋ git ์ฃผ์๋ฅผ ์๋ ค์ฃผ๊ฑฐ๋ ์ต๋ํ ์์ธํ ์ ์ด์ฃผ์ธ์<p sty
spring-bootjpaswaggermybatismoonni99
ใป
10๋ฌ ์
0
120
3
- ๋ฏธํด๊ฒฐ
item์ id๋ก getํ๋๋ฐ 1์ ๋ฃ์์ ๋ 500์๋ฌ๊ฐ ๋์์.
1๋ฃ์ผ๋ฉด apple์ด ๋์์ผ ํ๋๋ฐ, 500์๋ฌ๊ฐ ๋์ค๋ค์. ๋น๋๋ ์ ๋์๋๋ฐ ์ด๋๊ฐ ๋ฌธ์ ์ง ๋ชจ๋ฅด๊ฒ ๋ค์. ์ฝ๋๋ <a target=
spring-bootjpaswaggermybatis์์ฑ์ ์์
ใป
์ผ ๋ ์
0
91
1
- ๋ฏธํด๊ฒฐ
swagger spring boot 3 ์ ์ฉ run ์คํ ์๋ฌ
spring boot 3.4.3 ๋ฒ์ pom.xml ์๋ฌ๊ฐ ๋ฉ๋๋ค <!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui --
spring-bootjpaswaggermybatisํํ๊ฒฝ
ใป
0
230
2
- ๋ฏธํด๊ฒฐ
Invalid bound statement (not found): com.helloword.fitstStart.mapper.QuickMapper.findById ์ ๋ํ ์ง์ ์ ๋๋ค.
[์ค๋ฅ๋ด์ฉ]SERVICE์์ MAPPER๊น์ง ๊ฐ์ 1๋ก ์ ๋์ด ์ค๋๋ฐMAPPER์์ XML๋ก ๋์ด๊ฐ๋ ๋ถ๋ถ์์ ์ค๋ฅ๊ฐ ๋ฉ๋๋ค.[์ค๋ฅ SCRIPT]2024-05-23T12:14:49.232+09:00 INFO 5
spring-bootjpaswaggermybatiskho65
ใป
0
543
1
- ๋ฏธํด๊ฒฐ
QuickMapper๋ฅผ ์ฐพ์ ์ ์๋ค๋ ์ค๋ฅ๊ฐ ๋น๋๋ค. @Autowired ์ฌ์ฉ์ ๋ฌธ์ ๊ฐ ์๋ ๊ฑธ๊น์?
์๋ ํ์ธ์?๊ฐ์ ๋ด์ฉ์ด ๋๋ฌด ์ข์์ ๋น ์ ธ์ ๋ฃ๊ณ ์์ต๋๋ค.๊ทธ๋ฐ๋ฐ mybatis์ฐ๊ฒฐ ๊ณผ์ ์์ QuickMapper interface์ xml์ฐ๊ฒฐํ๋ ๋ถ๋ถ ์์ ์ค์ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค. ์๋ฌ ๋ด
spring-bootjpaswaggermybatis์์ ์(๋ง์ํ๋)
ใป
2
357
3
- ๋ฏธํด๊ฒฐ
mybatis์ hashmap ๋ฐ์ดํฐ ํธ์ถ์ ๋๋ฌธ์๋ก ๋ถ๋ฌ์์ผ ๋๋์?
๊ฐ์ ๋ด์ฉ์ ๋ํด ์ง๋ฌธํด ์ฃผ์ธ์์๋ฌ๊ฐ ๋ ๊ฒฝ์ฐ ๋ณธ์ธ ์ฝ๋๊ฐ ์๋ git ์ฃผ์๋ฅผ ์๋ ค์ฃผ๊ฑฐ๋ ์ต๋ํ ์์ธํ ์ ์ด์ฃผ์ธ์ ์๋ฌธ์๋กํ๋ฉด null๋ก๋ง ๋์ต๋๋ค...
spring-bootjpaswaggermybatisใ
ใป
0
509
1
- ๋ฏธํด๊ฒฐ
@Autowired ๊ด๋ จ
๊ฐ์ ๋ด์ฉ์ ๋ํด ์ง๋ฌธํด ์ฃผ์ธ์์๋ฌ๊ฐ ๋ ๊ฒฝ์ฐ ๋ณธ์ธ ์ฝ๋๊ฐ ์๋ git ์ฃผ์๋ฅผ ์๋ ค์ฃผ๊ฑฐ๋ ์ต๋ํ ์์ธํ ์ ์ด์ฃผ์ธ์ @Autowired ๋ฅผ ์ฌ์ฉํด๋ QuickService
spring-bootjpaswaggermybatispudding
ใป
0
258
1
- ํด๊ฒฐ
๋ง์ด๋ฐํฐ์ค - ํด์ฌ๋งต
์๋ ํ์ธ์! ๊ฐ์ ์๋ฃ๊ณ ์์ต๋๋ค! ๋ง์ด๋ฐํฐ์ค ์ค์ ๊ด๋ จ parameter๋ฅผ 1๊ฐ์์๋ ๋ถ๊ตฌํ๊ณ HashMap์ผ๋ก ๊ฐ์ธ์ ๋ณด๋ด๋๋ฐ ์๋ ๋ง์ด๋ฐ์ด์คํธ ๋งค๊ฐ๋ณ์ ๋๊ธธ๋ ๋ณดํต ํด์ฌ๋งต์ผ๋ก ๊ฐ์ธ์ ๋ณด๋ด๋์?๋ํ๊ฐ์ง ๋ง์ฝ ๋๊ฒจ์ค
spring-bootjpaswaggermybatisyouakdl
ใป
0
554
1






