- 博客(6)
- 收藏
- 关注
原创 Spring boot cache的Simple Cache更新数据后获取的缓存数据为null问题
Spring boot cache的Simple Cache更新数据后获取的缓存数据为null问题问题代码如下:@Cacheable(key = "#playerId")public Player getPlayer(Long playerId) { return playerRepository.getOne(playerId);}@CachePut(key = "#play...
2019-01-17 10:59:56
1151
原创 Mysql 将timestamp存储进datetime时间不一致问题
一、环境:Mysql的datetime字段:Java代码中的timestamp:二、问题:上面代码的输出:然而数据库存储的数据为: 三、解决:datetime默认毫秒位数为0,则四舍五入取整得出上面结果。只需填写恰当的datetime长度即可。 ...
2018-12-20 17:22:45
4512
1
原创 windows环境下使用命令行执行java程序输出文件编码问题
/*** 输出文件,编码为UTF-8 用记事本另存为:fileContent 全部为英文则为ansi 包含中文则为UTF-8* @param filePathAndName* @param fileContent*/public static void writeFile(String filePathAndName, String fileContent){ try {...
2018-03-16 17:35:37
1422
原创 java.lang.NoSuchFieldException: scheduledFutures错误解决方案
在做Spring定时任务时,遇到了java.lang.NoSuchFieldException: scheduledFutures at java.lang.Class.getDeclaredField(Class.java:1953) 的错误。代码为: Field futures = ScheduledTaskRegistrar.class.getDeclaredField("sch
2017-06-06 19:52:02
1759
原创 eclipse安装完成python插件,却不能加载成功
python插件的安装需要确定已安装的jdk版本和python版本是否合适。官网说明链接:http://www.pydev.org/download.htmleclipse在线安装旧版本python插件链接:https://dl.bintray.com/fabioz/pydev/old/
2017-04-18 09:40:57
1998
原创 MyBatis Invalid bound statement
出现问题:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.***.Dao.getItemsByPeriod at org.apache.ibatis.binding.MapperMethod$SqlCommand.init>(MapperMethod.ja
2017-03-02 19:46:51
268
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人