摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2016-02-12 23:54 EvanLeung 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 由于Maven默认编译环境是JAVA 1.5 ,所以我们需要在pom.xml指定编译插件版本号,这样就可以保证更新Maven project版本不变。 <!-- java编译插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <ar 阅读全文
posted @ 2016-02-12 23:50 EvanLeung 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 测试前期准备 第一步:创建easybuy数据库,设置utf-8格式 第二步:创建表test_tb CREATE TABLE `test_tb` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `bir 阅读全文
posted @ 2016-02-12 11:47 EvanLeung 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 目录结构 第一步:web.xml 先配置contextConfigLocation 对应的application-context.xml文件 打开webapp\WEB-INF\web.xml, 配置spring监听器和上下文 <?xml version="1.0" encoding="UTF-8"? 阅读全文
posted @ 2016-02-12 11:03 EvanLeung 阅读(275) 评论(0) 推荐(0) 编辑