일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 오픈소스
- git
- Thymeleaf
- 문서
- AJAX
- ubuntu
- MSSQL
- 설정
- error
- maven
- JavaScript
- Exception
- Source
- spring
- STS
- myBatis
- MySQL
- PostgreSQL
- Spring Boot
- SpringBoot
- IntelliJ
- Docker
- jpa
- JDBC
- Python
- Eclipse
- Tomcat
- Core Java
- Open Source
- oracle
- Today
- Total
목록@EnableWebMvc (3)
헤르메스 LIFE

개발환경 Spring Boot Spring Security ... 제 프로젝트에 Swagger를 사용하기 위해 셋팅을 해 봤는데, http://localhost:8080/swagger-ui.html 접속이 안되고 있습니다. 원인은 Spring Security 가 접속을 막는 듯 보여집니다. 심규남님의 소스를 통해서 잘 되는 소스를 이용해서 제가 원하는 환경을 테스트 할 수 있었습니다. 1. @EnableWebMvc 와 WebMvcConfigurer 의 관계를 공부할 수 있었습니다. 2. @EnableSwagger2를 반드시 넣어줘야 합니다. 3. addResourceHandlers 함수를 Override 해줘야 합니다. @Configuration @EnableWebMvc // spring-security..

개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.56 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.6.3 Spring Boot 를 설정하면서, Tomcat을 추가해 뒀는데.. Tomcat plugin 은 JSP를 실행할 수 없는 모양입니다. org.springframework.boot spring-boot-starter-tomcat provided Dependency를 추가해야 합니다. org.apache.tomcat.embed tomcat-embed-jasper provided javax.servlet jstl pom.xml 4.0.0 org.springframework...
Interceptor를 등록 후 아래와 같은 오류가 발생하였습니다. Could not resolve view with name 'index' in servlet with name 'dispatcherServlet' package com.study.myweb.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.HandlerInterceptor; ..