Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- IntelliJ
- 자바
- Python
- 네트워크
- mssql
- git
- MariaDB
- 오블완
- 명령어
- DBMS
- pandas
- AI
- 티스토리챌린지
- 독서
- 웹
- Javascript
- 리눅스
- mysql
- 후기
- PostgreSQL
- docker
- SQL
- Linux
- java
- spring
- 책
- 책추천
- 개발
- oracle
- react
Archives
- Today
- Total
hanker
Spring boot - jsp 사용 본문
반응형
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<!-- jstl 라이브러리 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
jsp 사용을 위한 pom.xml에 추가 설정
+add
application.properties에 다음코드 추가
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
위 jstl, jasper를 추가하지 않으면 404 Error가 뜬다.
반응형
'SPRING' 카테고리의 다른 글
Spring - 코드 수정시 자동 재실행 (0) | 2021.02.06 |
---|---|
Spring - Runnable JAR File Export ( Launch configuration 목록이 없을때) (1) | 2021.02.06 |
Spring boot - jsonView 사용 (0) | 2021.01.12 |
Spring boot - application.properties MySQL DB 설정 (0) | 2021.01.12 |
Spring - MySQL 연동 테스트 (0) | 2021.01.08 |