-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
프로젝트 초기 구성 설정 #9
Conversation
현재 컨트롤로만 있는 것으로 확인했습니다. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자바 설정으로 변경해주세요.
src/main/webapp/WEB-INF/web.xml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자바 설정으로 변경해주세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 확인해주세요.
import javax.servlet.ServletException; | ||
import javax.servlet.ServletRegistration; | ||
|
||
public class MyWebAppInitializer implements WebApplicationInitializer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AbstractAnnotationConfigDispatcherServletInitializer 에 대해서도 한번 찾아보세요.
build.gradle
Outdated
|
||
implementation "org.apache.tomcat.embed:tomcat-embed-core:9.0.68" // 내장 톰캣 기능 제공 | ||
implementation "org.apache.tomcat.embed:tomcat-embed-jasper:9.0.68" // JSP 처리 기능 제공 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API 외에 JSP로 프론트를 구성하실 예정인가요?
build.gradle
Outdated
|
||
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
단위 테스트 제거하지 말고 구성해주세요.
📗 요약
Gradle 빌드 도구를 사용하여
wheel-go
프로젝트의 초기 구성을 설정하였습니다.🛠️ 작업 사항
build.gradle
파일 구성: Spring 의존성 추가 및 Java 버전 설정web.xml
작성: Spring MVC 설정과 DispatcherServlet 초기화dispatcher-servlet.xml
작성: Spring MVC 설정 및 컨트롤러 매핑 설정context-common.xml
작성: 공통 빈 설정 및 컴포넌트 스캔 설정TestController
작성: 테스트용 컨트롤러 추가🗨️ 리뷰어에게 공유사항
TestController
는 기본적인 엔드포인트를 제공하므로, 작동 여부 확인을 위해 테스트 권장합니다.