摘要: 请求重定向的绝对路径是基于localhost:8080的 服务器内部跳转都是基于localhost:8080/projectName 相对路径都是基于当前文件的 阅读全文
posted @ 2017-07-06 18:42 xnui7 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 package com.lxr.servlet; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 import java.sql.PreparedStatement; 6 import java.sql.ResultSet; 7 import java.sql.SQLException; 8 ... 阅读全文
posted @ 2017-01-09 13:36 xnui7 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/ 阅读全文
posted @ 2016-12-25 20:21 xnui7 阅读(220) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><!-- Bean头部 --><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2016-12-25 20:20 xnui7 阅读(76) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><!-- Bean头部 --><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2016-12-25 20:19 xnui7 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 1.测试套件就是组织测试类一起运行的 2.写一个作为测试套件的入口类,这个类里千万绝对不能包含其他的方法。 3.更改测试运行器Suite.class. 4.将要测试的类作为数组传入到Suite.SuiteClasses({}) Example: @RunWith(Suite.class) @Suit 阅读全文
posted @ 2016-12-22 16:39 xnui7 阅读(147) 评论(0) 推荐(0) 编辑
摘要: inverse在set裏設置為true 就可以不讓多對多關係打出多余的更新(update)的語句 以提高与数据库交互的性能 阅读全文
posted @ 2016-12-22 16:36 xnui7 阅读(88) 评论(0) 推荐(0) 编辑
摘要: * @Test: 将一个 普通的方法修饰成为一个测试方法* @BeforeClass: 他会在所有的方法运行前被执行,static修饰* @AfterClass 他会在所有方法运行结束后被执行,static修饰* @Before:会在每一个测试方法被运行前执行一次* @After 会在每个测试方法被 阅读全文
posted @ 2016-12-22 16:33 xnui7 阅读(147) 评论(0) 推荐(0) 编辑