03 2019 档案

摘要:1、核心配置文件 sqlMapConfig.xml 2、sql语句 User.xml 3、日志文件 log4j.properties 4、数据库文件 jdbc.properties 5、测试类 阅读全文
posted @ 2019-03-27 15:31 voidchar 阅读(318) 评论(0) 推荐(0)
摘要:1 //帮我们创建容器 2 @RunWith(SpringJUnit4ClassRunner.class) 3 //指定创建容器时使用的配置文件 4 @ContextConfiguration("classpath:applicationContext.xml") 5 public class TestDemo { 6 7 // 将名为user的对象注入到一个变量中 8... 阅读全文
posted @ 2019-03-20 08:37 voidchar 阅读(362) 评论(0) 推荐(0)
摘要:1、引入jar包 2、新建applicationContext.xml配置文件 位置随意,建议放在src目录下 新建的空xml文件,写入一对beans标签 3、打开Windows-->Preferences-->XML Catalog,点击Add 4、点击File System,找到Spring中s 阅读全文
posted @ 2019-03-16 09:39 voidchar 阅读(3408) 评论(0) 推荐(0)
摘要:配置文件 Java 阅读全文
posted @ 2019-03-12 08:42 voidchar 阅读(347) 评论(0) 推荐(0)
摘要:1 import java.awt.image.BufferedImage; 2 import java.io.BufferedReader; 3 4 import java.awt.Color; 5 import java.io.FileReader; 6 import java.io.IOException; 7 import java.util.ArrayLi... 阅读全文
posted @ 2019-03-05 10:06 voidchar 阅读(892) 评论(0) 推荐(0)