๋ฐ˜์‘ํ˜•

์Šคํ”„๋ง 2

[Springboot] required a bean of type that could not be found error ์˜ค๋ฅ˜ ์›์ธ ๋ฐ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

Intro์Šคํ”„๋ง์„ ์‚ฌ์šฉํ•˜๋˜ ๋„์ค‘ ๋‹ค์Œ์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. Parameter 0 of constructor in kr.co.example.api.service.example.impl.ExampleApiServiceImpl required a bean of type 'kr.co.example.common.client.aws.AwsS3Client' that could not be found. WhySpring์—์„œ ์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๋Š” AwsS3Client ๋นˆ์„ ์ฐพ์„ ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. How to Solve    ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ ๊ฒฝ์šฐ ๊ฒฝ์šฐ AppConfig ํŒŒ์ผ์„ ํ†ตํ•ด์„œ ์Šคํ”„๋ง ๋นˆ์„ ๋“ฑ๋กํ•˜๊ณ , ์˜์กด์„ฑ ์ฃผ์ž…์„ ๊ด€๋ฆฌํ•˜๊ณ  ์žˆ์–ด์„œ AppConfig ํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค. @Configuration..

[SpringBoot] ์Šคํ”„๋ง JPA limit pagesize ์ตœ๋Œ€๊ฐ’(maxSize) ์ง€์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ์‹œ๊ฐ„์—๋Š” ์Šคํ”„๋ง JPA์—์„œ pageSize ํŽ˜์ด์ง€ ์‚ฌ์ด์ฆˆ๋ฅผ ์ตœ๋Œ€๊ฐ’์œผ๋กœ ์ง€์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. How to set to maxSize @PageableDefault ์–ด๋…ธํ…Œ์ด์…˜์„ ํ™œ์šฉํ•˜์—ฌ, size๋ฅผ Integer.MAX_VALUE๋กœ ์„ค์ •ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. size๋ฅผ ํ™•์ธํ•ด๋ณด๋ฉด, 2000์œผ๋กœ ์„ค์ •๋œ ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. public SomeResponseObject getSomething( @PageableDefault(size = Integer.MAX_VALUE) Pageable page ) { return someService.getSomething(page); } https://stackoverflow.com/questions/23751193/spring-data-..

๋ฐ˜์‘ํ˜•