会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ranch
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2019年6月24日
分布式唯一ID自增(雪花算法)
摘要: public class IdWorker { // Fields /** 开始时间截 (2015-01-01) */ private final long twepoch = 1420041600000L; /** 机器id所占的位数 */ private final long workerIdB
阅读全文
posted @ 2019-06-24 17:55 TracyRanch
阅读(329)
评论(0)
推荐(0)
2019年6月21日
JVM内存布局及GC知识
摘要: 一、JVM运行时内存布局 按java 8虚拟机规范的原始表达:(jvm)Run-Time Data Areas, 暂时翻译为"jvm运行时内存布局"。 从概念上大致分为6个(逻辑)区域,参考下图(注:Method Area中还有一个常量池区,图中未明确标出) 这6块区域按是否被线程共享,可以分为二大
阅读全文
posted @ 2019-06-21 11:51 TracyRanch
阅读(231)
评论(0)
推荐(0)
2019年5月19日
double涉及大数据的时候会变成科学计数法
摘要: double b=1.23456789128E8DecimalFormat df = new DecimalFormat("0.00");//精度自己控制保留几位小数点 String c= df.format(b); System.out.println(c);输出123456789.13
阅读全文
posted @ 2019-05-19 23:39 TracyRanch
阅读(2527)
评论(0)
推荐(0)
2019年5月13日
IDEA中的JUNIT测试
摘要: 安装插件 Ctrl+Alt+s→Plugins→junitgenerator v2.0 Alt+insert 选中JUnit test 中JUnit4
阅读全文
posted @ 2019-05-13 17:57 TracyRanch
阅读(326)
评论(0)
推荐(0)
spring boot 整合 swagger2
摘要: swagger2为了更好的管理api文档接口 swagger构建的api文档如下,清晰,避免了手写api诸多痛点 一,添加依赖 二,swagger2的配置类 配置类需要与application.java至于同一目录下 三、设定访问API doc的路由 在配置文件中,application.yml中声
阅读全文
posted @ 2019-05-13 15:17 TracyRanch
阅读(218)
评论(0)
推荐(0)
2019年4月3日
springboot 报错nested exception is java.lang.IllegalStateException: Failed to check the status of the service xxxService No provider available for the service
摘要: spring: dubbo:#关闭所有服务的启动时检查:(没有提供者时报错) consumer: check: false timeout: 3000
阅读全文
posted @ 2019-04-03 17:03 TracyRanch
阅读(2400)
评论(0)
推荐(0)
解决jar包依赖冲突(idea)
摘要: 在IDEA状态下查看项目依赖的关系 关系如下图 红色数据jar包冲突 在对应的依赖中出去去冲突依赖
阅读全文
posted @ 2019-04-03 16:57 TracyRanch
阅读(3040)
评论(0)
推荐(1)
2019年3月28日
IDEA中springboot的热部署
摘要: 在pom.xml文件中添加依赖 <build>中添加一下插件 Ctrl+alt+s打开setting勾选如下实现自动编译 ctrl + shift + alt + /点击Registry 勾选Compiler autoMake allow when app running 修改完成
阅读全文
posted @ 2019-03-28 17:47 TracyRanch
阅读(176)
评论(0)
推荐(0)
2019年3月26日
Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Z
摘要: 依赖冲突,查看pom.xml文件 查看parent项目的依赖版本为 项目本身为2.1.3.RELEASE 更换1.5.9RELEASE版本正常 目前不知何原因,都说的jar版本冲突, 布置过两个一样的版本,第一个2.1.3RELEASE无异常,第二个出问题还1.5.9.RELEASE正常
阅读全文
posted @ 2019-03-26 15:49 TracyRanch
阅读(15211)
评论(0)
推荐(1)
2019年2月25日
springboot下Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
摘要: 已检查jar包是否引入 还有一种是从某个版本后mybatis没有自动注入sqlSessionFactory 手动创建注入设置类
阅读全文
posted @ 2019-02-25 16:40 TracyRanch
阅读(15634)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
7
下一页
公告