用tomcat的时候一直开启不了两个严重错误.
你 maven 模版选错了
没有jar包吧?
你的建包非常不规范,
Tomcat 配置文件中,规定了默认会去什么地方找WEB-INF目录之类的,
你要规范点!
请看看规范点的
spring xml配置找不到对应的dtd描述,你用的mavne archetype有问题吧?试一试这个
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>
不清楚你选的是什么maven模板, 现在发现的问题:
src/main下没有java文件夹。