SpringCloud
qq_42190640
这个作者很懒,什么都没留下…
展开
-
java 通用方法封装
//获取时间差天数 private static int getDatePoor(Date endDate, Date nowDate) { Calendar cal = Calendar.getInstance(); cal.setTime(endDate); long time1 = cal.getTimeInMillis(); cal.setTime(nowDate); long time2 = cal.getTi原创 2021-02-01 14:01:33 · 264 阅读 · 0 评论 -
Cannot execute request on any known server
修改配置register-with-eureka: falsefetch-registry: false原创 2020-07-02 11:03:55 · 87 阅读 · 0 评论 -
Failed to configure a DataSource: 'url' attribute is not specified and no embedded
在 SpringBoot 应用程序启动时,排除 jdbc 的自动装配机制即可,在程序入口文件中新增配置注解 “ exclude=DataSourceAutoConfiguration.class ” ,如下图:原创 2020-04-22 17:50:13 · 91 阅读 · 0 评论