개발5 Spring-boot 연구하면서 작성한 글이다 보니 굉장히 미숙한 부분이 많을 수 있는 점 꼭 고려해주세요 :) Spring-boot 전반적인 Spring-boot 세팅 : https://linkeverything.github.io/study/springboot/getting-started/ controller 설정: https://memostack.tistory.com/161 application.properties 설정: https://velog.io/@claudia/2-1-스프링부트-프로젝트-생성-및-실행 properties vs yml 구조 domain db의 테이블과 직접적으로 맵핑되는 클래스 입니다. jpa 사용시 여러 어노테이션을 사용하여 테이블, 필드, 필드 옵션 등을 설정하게 됩니다. domain 클래스에서 .. 2022. 11. 3. [Spring] ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 문제 발생 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang. 프로젝트를 새로 만들어서 진행해야하는 일이 있어서 Spring mvc 로 maven 프로젝트를 생성했다. 프로젝트 실행 테스트겸 서버에 올려 실행시켰더니 위와 같은 에러가 발생했다. 인터넷에 돌아다니는 가장 보편적인 해결방법으로는 프로젝트 >> properties >> Deployment Assembly를 선택한 후, "Add" >> Java Build Path Entries >> Maven Dependencies 선택한 후, "Apply"를 해준다. 였다. 하지만 위와 같은 방법을 통해 .. 2022. 5. 4. [Spring-boot] @RequestMapping cannot be resolved to a type Spring-boot를 import 하자마자 REST API를 구현하기위해 controller안에 ReqeustMapping을 선언했더니 다음과 같은 에러가 발생했다. [에러내용] @RequestMapping cannot be resolved to a type [해결방법] pom.xml에 다음을 추가 org.springframework.boot spring-boot-starter-web 2021. 11. 3. [Java] Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources failed Maven SpringBoot를 import 하고 나니 아래와 같은 에러가 발생했다 [pom.xml] org.springframework.boot spring-boot-starter-parent 2.5.6 [에러내용] Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:ourresces failed [해결방법] 아래 라이브러리를 pom.xml 에 추가 후 Maven > Update project ( Force Update of Snapshots/Releases 체크 ) 2021. 11. 3. 이전 1 2 다음