09 2020 档案
摘要:spring的component-scan扫描多个包: <context:component-scan base-package="x.y.z.service, x.y.z.controller" /> 注意这里必须是包名。
阅读全文
摘要:1、错误: ${pageContext.request.contextPath} 在Jsp页面报错 2、解决办法 将jsp-api.jar 和 servlet-api.jar 一起添加到项目中,这两个jar包在tomcat的lib文件夹下可找到 <!-- servlet 相关api,因为servle
阅读全文
摘要:初步接触springmvc的时候,被要求使用restful风格,彼时一头雾水,不懂何谓restful,参阅了很多资料,慢慢的接触的也越来越多,如今spring的况且已基本运用熟练,简单谈一下我的一些看法,当然,只是我自己的浅显粗陋的见解,不对的地方还望指正。 restful风格 简单的理解,rest
阅读全文
摘要:1. 添加maven的依赖 <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <version>1.2.4</version> </dependency> 2. 配置datasourc
阅读全文