\
개발환경
스프링 버전 : Spring Tool Suite 3.9.11
JDK 1.8
톰켓 : 8.5
2021.05.17 - [분류 전체보기] - 스프링 다운로드 /STS 다운로드 (3.9.14 v 다운받기)서블릿/JDK 8 호환
2021.03.29 - [JAVA/JAVA(자바)설치 및 툴 이용(ECLIPSE)] - [JAVA] 자바 설치 및 환경 하기 JDK 1.8 버전/ 8버전
스프링 xml 기본 코드
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/root-context.xml</param-value>
</context-param>
<!-- Creates the Spring Container shared by all Servlets and Filters -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Processes application requests -->
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
[스프링]Spring //@Autowired / 어노테이션 방식 (0) | 2021.05.26 |
---|---|
[Spring] 스프링 MVC //개요생명주기 //Controller 계층 구조 (0) | 2021.05.24 |
[스프링]sprng 의 장점 과 단점 (0) | 2021.05.24 |
[스프링]spring 프로젝트 만들기 // 구조 (0) | 2021.05.24 |
[servlet_jsp_spring] annotation(어노테이션) servlet 등록 방법// 현재 시간 web에 나타 내기 소스 코드 (0) | 2021.05.17 |