摘要:
Spring+SpringMVC+Mybatis整合 一.首先创建三个文件夹用户存放Spring+SpringMVC+Mybatis,如下图 Mybatis文件夹下的配置 1.config文件内容 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE c 阅读全文
posted @ 2017-07-27 21:38
l小样
阅读(2241)
评论(0)
推荐(0)
摘要:
<dependencies> <!-- 引入servletAPI解决编译servlet问题 --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</ver 阅读全文
posted @ 2017-07-27 19:31
l小样
阅读(1670)
评论(0)
推荐(0)
摘要:
Spirng文件上传 定义配置System.properties文件的文件上传路径 fileSaveDir=E:/ceshi/ <!--SpringMVC配置--> <!--读取文件上传资源文件--><context:property-placeholder location="classpath: 阅读全文
posted @ 2017-07-27 16:44
l小样
阅读(597)
评论(0)
推荐(0)
摘要:
一: 在springmvc配置文件<mvc:interceptors> !--定义全局拦截器--> <bean class="cn.yunhe.controller.Intertype"/> <!--定义排除在外的拦截器方法--> <mvc:interceptor> <mvc:mapping pat 阅读全文
posted @ 2017-07-27 15:14
l小样
阅读(170)
评论(0)
推荐(0)