原创 Maven引入本地Jar包並打包進War包中
Maven引入本地Jar包並打包進War包中1.概述在平時的開發中,有一些Jar包因爲種種原因,在Maven的中央倉庫中沒有收錄,所以就要使用本地引入的方式加入進來。2. 拷貝至項目根目錄項目根目錄即pom.xml文件所在的同級目錄,可以
原创 使用xstream將xml和bean互轉
pom.xml <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>
原创 mybatis運行sql腳本工具,帶參數
@Resource(name = "dataSource") DruidDataSource dataSource; //參數替換佔位符 @Value("${scriptrun.sql.splitMark}") String
原创 mysql的一些配置指令
查看是否開啓了binlogshow variables like 'log_bin';配置時區select curtime() #查看當前時間show variables like "%time_zone%" #查看時區set globa
原创 jackson json字符串 轉換Bean, Bean 裏沒有對應的值
private static ObjectMapper mapper; public static ObjectMapper getObjectMapper(){ if(null == mapper){ mapper = n