![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
你倒是跑啊
这个作者很懒,什么都没留下…
展开
-
Java TreeMaker
// import package private JCTree.JCImport genImportPkg(String packageName, String className){ JCTree.JCIdent ident = treeMaker.Ident(names.fromString(packageName)); return treeMaker.Import(treeMaker.Select( ident, n...原创 2022-01-27 11:08:57 · 1206 阅读 · 0 评论 -
解决TreeMaker AssertionError: Value of x -1
JCTree.JCVariableDecl param = treeMaker.VarDef(...)JCTree.JCMethodDecl methodDecl = treeMaker.MethodDef(..., List.of(param),...)编译报错:AssertionError: Value of x -1解决:(1) 如果是从已经存在变量生成新的JCMethodDecl param.pos = jCVariableDecl.pos(2) 如果是新...原创 2021-10-11 12:28:38 · 452 阅读 · 0 评论 -
seata-1.2客户端配置
registry.confregistry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "eureka" nacos { serverAddr = "localhost" namespace = "" cluster = "default" } eureka { se...原创 2020-05-08 16:09:29 · 1436 阅读 · 0 评论 -
seata-1.2-mybatis-plus
pom依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.10&l...原创 2020-05-08 16:03:36 · 734 阅读 · 0 评论 -
seata-server-1.2.0测试
说明seata-server-1.2.0\seata\conf\README.md# Script Description## [client](https://github.com/seata/seata/tree/develop/script/client) > Store configuration and SQL for client side- at: Scri...原创 2020-05-08 15:47:30 · 567 阅读 · 0 评论 -
redisson 简要说明
redissonhash key的组成hash key的组成uuid + threadIduuid:ConnectionManager的id, 创建时UUID id = UUID.randomUUID();原创 2020-05-07 10:37:14 · 310 阅读 · 0 评论 -
夏令时/冬令时
时区内发生令时,时间戳基准时间不会改变 private static void printDate(long now) { // 美国时间 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); System.out.println("time=" + now + ...原创 2019-07-17 12:55:50 · 682 阅读 · 0 评论 -
c3p0连接参数设置
<?xml version="1.0" encoding="UTF-8"?><c3p0-config> <default-config> <property name="initialPoolSize">1</property> <property name="maxIdleTime">...原创 2019-04-17 14:40:05 · 256 阅读 · 0 评论 -
去除pom.properties时间
#Generated by Maven#Mon Nov 13 16:49:24 CST 2017version=1.0-SNAPSHOT如何去除上述中的默认时间输出?解决出处https://blog.holisticon.de/2016/10/reproducible-builds-in-java/ 使你的maven构建可重现: 有一天,Maven归档器可以支持这种行为 - 不需要额外的重新原创 2017-11-13 17:58:02 · 2364 阅读 · 0 评论 -
spring task
spring task配置原创 2017-08-31 19:02:10 · 201 阅读 · 0 评论 -
目录监控
file原创 2017-09-07 18:51:58 · 350 阅读 · 0 评论 -
javaAgent简单使用
javaAgent简单使用原创 2017-08-23 20:58:58 · 1016 阅读 · 0 评论 -
protobuf使用例子
protobuf使用例子原创 2017-08-27 02:15:49 · 887 阅读 · 0 评论