随笔分类 -  java

摘要:public class Test { public static void main(String[] args){ String filePath = "E:\\softoon\\workspace_softoon\\TestMobile\\src\\1.docx"; String outFilePath = "E:\\softoon\\wor... 阅读全文
posted @ 2017-06-10 21:06 edgedance 阅读(11940) 评论(0) 推荐(0) 编辑
摘要:有时我们在读取properties结尾的配置文件的时候,如果配置文件中有中文,那么我们读取到的是unicode码的中文,需要我们在转换一下,代码如下/** * 将配置文件中的Unicode 转 utf-8 汉字 * @param 原始字符串 * @return 转换后的格式的字符串 */ public static String unicodeT... 阅读全文
posted @ 2017-06-10 19:28 edgedance 阅读(3029) 评论(0) 推荐(1) 编辑
摘要:配置文件 放置在src下面 obj.propertiesclassName=com.store.order.dao.impl.OrderDaoImpl方式一@Test public void test1() throws Exception{ //文件放在src下面.eclipse会自动拷贝一份到bin目录下,或者build/classes下面, Input... 阅读全文
posted @ 2017-06-10 19:27 edgedance 阅读(764) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示