Cannot change version of project facet Dynamic Web Module to 2.5 오류
오류 발생 현상
Description Resource Path Location Type
Cannot change version of project facet Dynamic Web Module to 2.5. egov_all_in_one line 1 Maven Java EE Configuration Problem
web.xml 내 3.1로 서블릿 사용버전 변경하고 alt + F5번 을 눌러 메이븐 업데이트하면 끝!
BEFORE |
AFTER |
<?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" ==> 3.1에서 삭제해도 무방! xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > |
<?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" > > |
before 사진
after사진