스프링

    오류: 기본 클래스 " "을(를) 찾거나 로드할 수 없습니다.

    패키지명에 오타가 나서 리팩토링 후 기본 클래스 로드 불가 에러 메시지가 뜨는 경우. 캐시삭제, .gradle 폴더 삭제, 프로젝트 리빌드 다 소용없고.. Menu > Run > Edit Configurations > Run/Debug Configuration > Main class:를 변경한 클래스명과 동일하게 수정하면 바로 적용된다...

    [Kotlin] Content is not allowed in prolog.; HTTP header setting error

    Tableau api를 활용하여 개발 중, json 형태의 데이터를 보내 응답을 받아야 하는데 아래 오류가 뜨는 경우 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [{"error":{"summary":"Bad Request","detail":"Deserialization problem: Content is not allowed in prolog.; ","c..

    [Kotlin] Open API 호출해서 데이터 가져오기

    알파버전 프로젝트에 코틀린을 적용해보자는 이야기가 나와서 코틀린을 들여다 보느라 하루가 다 갔다. 우선 외부 데이터를 끌어다가 출력하는것까지 시도했다. 다른 분이 자바로 예제를 올려두신 걸 보고 코틀린으로 옮겨 적었다. 너무 옮겨적은 것 같으니 프로젝트 진행하면서는 좀 갈고 닦아봐야 할 것 같다. ▼ 우선 gradle에 dependency를 설정했다. dependencies { implementation("org.springframework.boot:spring-boot-starter-thymeleaf") implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spri..