![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
wanna do
这个作者很懒,什么都没留下…
展开
-
SpringBoot启动前端工程报错-Whitelabel Error Page
错误信息:Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Fri Nov 01 10:35:00 CST 2019There was an unexpected error (type=Not Found, statu...原创 2019-11-01 10:47:26 · 378 阅读 · 0 评论 -
Command line is too long. Shorten command line for Application
报错信息:Error running ‘XXXXApplication’: Command line is too long. Shorten command line for XXXXApplication or also for Spring Boot default configuration.原因:“命令行太长,缩短命令行XXXXApplication或为Spring启动默认配置”,...原创 2019-11-01 10:19:05 · 312 阅读 · 0 评论 -
关于Mysql驱动版本问题-Loading Class `com.mysql.jdbc.Driver`. This is deprecated.
今天启动项目时,发现控制台不停的打印,并且项目没有正常运行.如图:我一眼就瞅见了com.mysql.cj.jdbc.Driver,很像Mysql的驱动包,但是猛一看,中间多了个cj,为啥输出了这个呢?经过我一番研究,发现原来是Mysql驱动包版本的问题,我找到我本地的maven仓库,发现我的驱动版本是8.0.15版本的。首先版本更改的话,配置文件也得相应的进行更改,其次如果是高版本的话...原创 2019-10-21 10:06:05 · 585 阅读 · 0 评论 -
如何优雅的判断List集合中对象的某个字段是否存在重复值
今天碰到一个需要判断泛型集合中的对象的某个字段是否有重复值的需求,特在此对方法进行记录。大致思路是,将List泛型集合转成Set,并且通过Comparator,来自定义排序方式;然后判断Set集合的数据长度是否与原本的List集合一致; /** * 判断List<X7235BO>的对象currencyCode是否有重复值 * * @param x...原创 2019-10-15 18:04:31 · 25482 阅读 · 0 评论