1
在intellij idea中创建gradle项目,完成后创建src文件夹以及下面的文件夹及文件,如下图所示
2
web.xml内容
<?xml version="1.0" encoding="UTF-8"?> !-- Spring的log4j监听器 --> org.springframework.web.util.Log4jConfigListener contextConfigLocation classpath:applicationContext-*.xml dispatcher org.springframework.web.servlet.DispatcherServlet 加载/WEB-INF/spring-mvc/目录下的所有XML作为Spring MVC的配置文件 contextConfigLocation /WEB-INF/spring-mvc/*.xml 1 dispatcher *.htm login.html
3
dispatcher-servlet.xml内容
4
build.gradle内容/
// Apply the java plugin to add support for Javaapply plugin: &