
Java
PERPETUITY cium
这个作者很懒,什么都没留下…
展开
-
Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
spring项目出现下面错误的时候,很明显缺少org/apache/commons/logging/LogFactory包,Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicat原创 2020-11-26 10:21:11 · 4930 阅读 · 0 评论 -
IDEA解决中文乱码(经过多次尝试终于成功)
对我来说最重要的解决方法:HELP->Edit Custom VM OPtions中加 -Dfile.encoding=utf-8 然后重启idea参考链接:https://blog.youkuaiyun.com/qq_39136928/article/details/81240894转载 2020-05-13 10:28:54 · 377 阅读 · 0 评论 -
Junit单元测试报java.lang.IllegalStateException: Failed to load ApplicationContext
@ActiveProfiles("dev")@RunWith(SpringRunner.class)@SpringBootTest( classes = MsManageApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)@AutoConfigureMo...原创 2019-07-29 15:03:57 · 43091 阅读 · 3 评论 -
java中比较两个list中去出不同的放在一个list中
//比较两个list //取出存在storeList中,但不存在storeSubList中的数据,差异数据放入differentListprivate void listCompare(List<StoreOut> storeList, List<StoreOut> storeSubList) { Map<StoreOut,Integer> map...转载 2019-08-30 12:19:03 · 2243 阅读 · 0 评论