본문 바로가기
반응형

분류 전체보기97

[SPRINGBOOT] spring.mvc.pathmatch.matching-strategy [SPRINGBOOT 오류] 스프링부트 스웨거 오류org.springframework.context.ApplicationContextException: Failed to start be [오류] org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 원인 - 이 오류 메시지는 스프링 애플리케이션 시작 중에 docume sum-mit45.tistory.com 위의 이 오류를 해결하면서, spring.mvc.pathmatch.matching-strategy가 무엇인지에 대.. 2023. 11. 15.
[SPRINGBOOT 오류] 스프링부트 스웨거 오류org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 해결 방법 [오류] org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 원인 - 이 오류 메시지는 스프링 애플리케이션 시작 중에 documentationPluginsBootstrapper 을 시작할 때 NullPointerException이 발생했다는 것이다. - Spring Boot 2.6 버전이후에는 spring.mvc.pathmatch.matching-strategy 값이 ant_path_matcher에서 path_pattern_parser로 변경되면서 몇몇 라이브러리에.. 2023. 11. 14.
[SPRINGBOOT, SWAGGER] SpringBoot 2.7* 버전에 Swagger 3.* 버전 연결하기 [SPRINGBOOT] SpringBoot 2.7* 버전에 Swagger 3.* 버전 연결하기 - 사용한 SpringBoot 버전은 '2.7.18-SNAPSHOT' 1. build.gradle implementation 'io.springfox:springfox-boot-starter:3.0.0' - 스웨거 버전을 설정하여 설치해준다. - 2.X 버전과는 다르게, 하나의 종속성만 추가해 주어도 된다. 2. Swagger Config 파일 추가 @Configuration public class SwaggerConfig { private final String TITLE = "title"; private final String DESCRIPTION = "description"; private final St.. 2023. 11. 13.
[cpp 알고리즘] 백준 1744 수 묶기 [백준] 1744 수 묶기 풀이 그리디 알고리즘, 정렬, 많은 조건 분기 문제 출처: https://www.acmicpc.net/problem/1744 문제 요약 - 길이가 N인 수열이 주어졌을 때, 두 수를 곱하거나 그대로 둘 수 있다. 이 수들을 모두 더한 값들 중 최댓값을 구하면 된다. 풀이 정리 1. 일단 오름차순으로 정렬한다. 2. 숫자 1을 기준으로 3가지 경우로 나뉘어진다. (1) 1보다 작은, 0이거나 음수인 경우 -> 앞쪽(작은 수)부터 두 수를 곱해서 최종 결과 값에 더하면 된다. (2) 1인 경우 -> 곱하는 데 사용하지 않고, 더하면 된다. (3) 1보다 큰 양수인 경우 -> 뒤쪽(큰 수)부터 두 수를 곱해서 최종 결과 값에 더하면 된다. 3. (1)의 경우 혹은 (3)의 경우가 홀.. 2023. 11. 11.
반응형