[ๆน่จ็2023-11-27] Spring Boot 3.xใๅฉ็จใใRESTful Web Servicesใฎ้็บ
ใใฎใฌใในใณใฏใSpring Bootใไฝฟ็จใใฆRESTful Web Servicesใขใใชใฑใผใทใงใณใ้็บใใใใญใปในใซใคใใฆๅญฆใถใใจใงใREST APIใฎ่จญ่จใซๅฟ ่ฆใชๅบๆฌ็ใช็ฅ่ญใๅญฆใถใใจใใงใใพใใ
ๅ่ฌ็ 4,910ๅ
้ฃๆๅบฆ ๅ็ด
ๅ่ฌๆ้ ็กๅถ้

ไปใฎๅ่ฌ็ใใใใใ่ณชๅใๆฐใซใชใใพใใ๏ผ
- ๆช่งฃๆฑบ
JPA
์๋ ํ์ธ์. UserDaoService์ ์๋ id๊ฐ1,2,3์ธ ์ฌ๋๋ค๊ณผJPA๊ด๋ จ๋
rest-apispring-bootghkddlsdyd998401
ใป
5ใถๆๅ
0
43
1
- ๆช่งฃๆฑบ
jpa dependency๋ฅผ ์ถ๊ฐํ๊ณ SecurityConfigํด๋์ค์์ ์ค๋ฅ๊ฐ ๋ฉ๋๋ค.
์๋ ํ์ธ์. ๊ฐ์๋ฅผ ์๊ฐํ๋ ๋์ค์ ๊ถ๊ธํ ์ ์ด ์์ด ์ง๋ฌธ๋๋ฆฝ๋๋ค.jpa dependency๋ฅผ ์ถ๊ฐํ๊ณ <p style="t
rest-apispring-bootghkddlsdyd998401
ใป
6ใถๆๅ
0
54
1
- ๆช่งฃๆฑบ
์น ๋ธ๋ผ์ฐ์ 400 bad request
์๋ ํ์ธ์. ์ ๊ฐ์๋ฅผ ๋ฐ๋ผ ์ฝ๋๋ฅผ ์์ฑํ๊ณ postman์์๋ ์ํ๋ ๊ฒฐ๊ณผ๋ฅผ ์ป์์ต๋๋ค. ํ์ง๋ง, ๋ค์ ๊ฐ์๋ก ์งํํ๊ธฐ ์ ์ ์น ๋ธ๋ผ์ฐ์ ์์ ์ ์์ ํด๋ดค๋๋ฐ 400 bad request๊ฐ ๋ฐ์ํ์์ต๋๋ค. default
rest-apispring-bootghkddlsdyd998401
ใป
6ใถๆๅ
0
56
1
- ่งฃๆฑบ
@Size๋ ๋๋๋ฐ @Past๋ ์ ๋ฉ๋๋ค.
์ ๋ชฉ ๊ทธ๋๋ก validation์์ size๋ถ๋ถ์ ํฌ์คํธ๋งจ์์ 400์ฒ๋ฆฌ๊ฐ ์ ๋๋๋ฐ Past ๋ถ๋ถ์ ๋ ๋๋ฅผ 1,2 ๋ ๋ค๋ก ์ค์ ํ๊ณ sendํด๋ด๋ ์์ฑ์ด ๋ฉ๋๋ค.<img src="https://cdn.infle
rest-apispring-bootghkddlsdyd998401
ใป
6ใถๆๅ
0
45
1
- ่งฃๆฑบ
pdf ์๋ฃ๋ ์๋์?
๊ฐ์ pdf ๊ต์์ ์๋์?
rest-apispring-bootghkddlsdyd998401
ใป
6ใถๆๅ
0
62
2
- ๆช่งฃๆฑบ
locale ์ ๋ณด๊ฐ null ์ด๋ฉด ๋ฌด์กฐ๊ฑด messages_ko.properties์ด ํธ์ถ ๋๋ ๋ฌธ์
<img src="https://cdn.inflearn.com/public/files/posts/59680db7-8507-49e2-ad61-1fd39a7af1eb/bdf3ce56-5809-4b4e-b646-92ec3a3394b4.png" media-type="img"
rest-apispring-bootyahoo23447340
ใป
7ใถๆๅ
0
75
2
- ่งฃๆฑบ
Swagger ๊ฐ์, Unable to infer base url ์ด๊ฑฐ ๋จ์๋ ๋ถ๋ค ๋์๋์๋ผ๊ณ
์คํ๋ง๋ถํธ 2.7 ๋ฒ์ ์์ 3.1 ๋ฒ์ ์ผ๋ก ์ฌ๋ ค๋ค๊ฐ ๊ฐ์๋๋ก ์ด๊ฒ์ ๊ฒ ๋ง์ ธ์ฃผ๊ณ ๋ค์ swagger ๋์ฐ๋ ค๊ณ ํ๋๋ 'Unable to infer base url ๋ญ์๊ธฐ' ๋จ๊ธธ๋ ์ธํ ๋ฆฌ์ ์ด 'ํ์ผ' ๋ฉ๋ด์์ 'Invali
rest-apispring-bootswaggershm9856
ใป
8ใถๆๅ
0
94
1
- ๆช่งฃๆฑบ
๊ฐ์์์๋์จ ํ๋ฉด ํผํผํฐ
๊ฐ์์์๋์จ ํ๋ฉด ํผํผํฐ๊ฐ์ ํ์ผ์ ์๋์?
rest-apispring-bootsksksk96
ใป
1ๅนดๅ
0
143
1
- ๆช่งฃๆฑบ
HelloWorldBean ๊ด๋ จ ์๋ฌ
`java: constructor HelloWorldBean in class mystudy.myrestfulservice.bean.HelloWorldBean cannot be applied to given types;
rest-apispring-bootghkdtjfxkd
ใป
0
169
2
- ๆช่งฃๆฑบ
Swagger API 3.x ์ค๋ฅ..
<img src="https://cdn.inflearn.com/public/files/posts/8b794cfe-e445-4c4b-9099-ebbd32d15b53/889953df-e1f8-47bf-bb89-4d430c93bac4.webp" media-type="img"
rest-apispring-bootguswns67697751
ใป
0
207
1
- ๆช่งฃๆฑบ
java: variable message not initialized in the default constructor ์๋ฌ๋ ์ด์ฐํ๋ฉด ์ข์๊น์?
localhost ์์ ์ด์ hello-world ๊น์ง๋ ๋๋๋ฐ hello-world-bean๊น์ง ํ๋ ค๊ตฌ ์ด์
rest-apispring-bootshheo
ใป
1
260
1
- ๆช่งฃๆฑบ
ํ์ฌ GIT์ ์ฌ๋ฆฌ์ ์์ค๋ฅผ ์คํํด๋ดค์ต๋๋ค.
ํ์ฌ GIT์ ์ฌ๋ฆฌ์ ์์ค๋ฅผ ์คํํด๋ดค์ต๋๋ค. ๊ทธ๋ฐ๋ฐ ์ํ๋ฆฌํฐ ๋น๋ฐ๋ฒํธ๊ฐ ์ฝ์์ฐฝ์ ๋จ์ง ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ application.yml์์ ์ํ๋ฆฌํฐ ๊ด๋ จ ๋น๋ฐ๋ฒํธ ์ฃผ์์ ํ๊ณ ์คํ์ ํด๋, rest api๊ฐ ์ธ์ฆ ์์ด๋ ํธ์ถ๋๋ ๊ฒ ๊ฐ์ต๋๋ค. ์ด
rest-apispring-bootlavender7
ใป
0
177
2
- ๆช่งฃๆฑบ
๊ณ ์์ด ์๋ฆฌ๊ฐ ๊ท์ฝ๋ค์ !!
์ด์ฌํ ๋ฃ๊ฒ ์ต๋๋ค !!!!!
rest-apispring-bootkjw22980857
ใป
0
124
2
- ๆช่งฃๆฑบ
git์์ ์์ค๋ฐ๊ณ ์ค์ต์ค์ธ๋ฐ
ํจ์ค์๋๋ฅผ ์๋ฃ์ด๋ 401์๋ฌ๊ฐ ์๋ 200์ผ๋ก ์ฌ๋ฐ๋ฅธ APIํธ์ถ์ด ๋ฉ๋๋ค.SecurityConfig ์์ ๊ณ ํ๋ฉด 302๋ก login ํ์ด์ง๋ก ๊ฐ๊ณ .. ํน์ ์ด๋ค๋ถ๋ถ์ด ๋ค๋ฅผ๊น์?
rest-apispring-bootzzang43553681
ใป
0
112
1
- ๆช่งฃๆฑบ
post๊ฐ ์๋์
"Required request body is missing: public kr.co.joneconsulting.myrest
rest-apispring-bootjohnhong5152886
ใป
0
96
1
- ๆช่งฃๆฑบ
ํ๊ตญ์ด ๊ฐ์ ๊ฒฝ์ฐ ์ธ์ด์ฝ๋์ธ messages_ko.properties ๋ก ์์ฑํ๋๊ฒ ๋ ์ข์ง ์๋์?
ํ๊ตญ์ด ๊ฐ์ ๊ฒฝ์ฐ ์ธ์ด์ฝ๋์ธ messages_ko.properties ๋ก ์์ฑํ๋๊ฒ ๋ ์ข์ง ์๋์? ์ข์ ๊ฐ์ ์ ๋ฃ๊ณ ์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
rest-apispring-bootmkp0131
ใป
0
146
2
- ๆช่งฃๆฑบ
๋ฆฌํดํ์ ์ผ๋ก์ EntityModel<User> ์ ResponseEntity์ง๋ฌธ
์ด์ ํ์ต์์ /users/{Id} ์ ๋งตํ๋ retrieveUser ๋ฉ์๋์ ๋ฆฌํดํ์ ์ EntityModel ๋ก ์ ์ํ์ต๋๋ค.๋ฐ๋ผ์ ์๋์ ๊ฐ์ ๋ฆฌํด๋ฌธ์ผ๋ก ๋ง์ณค์ต๋๋ค.<code class="language-jav
rest-apispring-bootddoddo
ใป
0
99
1
- ๆช่งฃๆฑบ
์์ธ์ฒ๋ฆฌ์ชฝ ๊ด๋ จ ์ง๋ฌธ์์ต๋๋ค.
<img src="https://cdn.inflearn.com/public/files/posts/018971c0-8ab8-456d-bdf4-2ea686b0e009/130c6f2d-a31d-4921-8689-99cef93fb412.png" media-type="img"
rest-apispring-bootakrmak121081
ใป
0
148
2
- ๆช่งฃๆฑบ
์ํฐํฐ๊ฐ ๋ฐ๋ก ์๋ต์ผ๋ก ๋๊ฐ๋ ๋๋์??
์ด๋ฒ ์์ ์ฝ๋๋ฅผ ๋ณด๋ฉด @Entity ๋ถ์ ํด๋์ค์์ @JsonIgnore ๋ฅผ ์ฌ์ฉํด json ํํฐ๋ง์ ํ๊ณ ์๋๋ฐ์.. ๋ณดํต entity ์ธ์ ๋ฐ๋ก dto ๋ง๋ค์ด์ ์๋ตํ์ง ์๋์??
rest-apispring-boothahahaha
ใป
0
207
2
- ๆช่งฃๆฑบ
์๋ ํ์ธ์ฌ Cannot invoke "co.kr.joneconsulting.resfulservice.repository.PostRepository.save(Object)" because "this.postRepository" is null
Cannot invoke "<a target="_blank" rel="noopener noreferrer nofollow" href="http://co.kr.joneconsulting.res
rest-apispring-boota846811565006
ใป
0
117
2

