0
私は基本的な春のWeb動的プロジェクトを作成しようとしています。
以下は、春のライブラリリストです。
要素 'beans'の宣言が見つかりません。春に
これは私のHelloWeb-servlet.xmlコードです。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_4.0.xsd"
bean-discovery-mode="annotated">
<context:component-scan base-package = "com.tutorialspoint" />
<bean class = "org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name = "prefix" value = "/WEB-INF/jsp/" />
<property name = "suffix" value = ".jsp" />
</bean>
</beans>
私を助けてください。ありがとうございました。
xmlnsが奇妙に見えますが、通常は別のものですhttps://stackoverflow.com/questions/17822466/spring-beans-dtd-and-xmlnsたとえば –
@RCここで変更する必要があります –