阿里maven
摘要:# cat /root/.m2/settings.xml <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema
阅读全文
java分析工具arthas
摘要:wget https://alibaba.github.io/arthas/arthas-boot.jar java -jar arthas-boot.jar --target-ip 0.0.0.0
阅读全文
spring boot指定外部配置的坑
摘要:外部配置文件所在目录path/to/dir 指定--spring.config.location=path/to/dir 项目启动,没有使用任何配置文件,项目外和jar包中的都没有使用 这是因为其把path/to/dir当成一个文件读取,没有读取到任何内容 指定--spring.config.loc
阅读全文
HttpServletRequest 获取cookie
摘要:request.getHeader("cookie") 得到的是a=b,c=d
阅读全文
Failed to introspect annotated methods on class 异常
摘要:用@enable时出现错误 Failed to introspect annotated methods on class 很可能是库和springboot版本不一致
阅读全文
zipkin
摘要:下载 wget -O zipkin.jar 'https://search.maven.org/remote_content?g=io.zipkin.java&a=zipkin-server&v=LATEST&c=exec' docker部署 https://github.com/openzipki
阅读全文
ide调试
摘要:F8: 程序向下执行一行(如果当前行有方法调用,这个方法将被执行完毕返回,然后到下一行) F7: 程序向下执行一行。如果该行有自定义方法,则运行进入自定义方法(不会进入官方类库的方法) Alt + Shift + F7 能进入任何方法 Shift + F8 跳出当前方法 点击该按钮后,你将返回到当前
阅读全文
代码生成
摘要:live templates http://blog.jobbole.com/110607/ easy code https://www.oschina.net/p/easycode?origin=wechat
阅读全文
IDEA 工具从Json自动生成JavaBean
摘要:1、先安装GsonFormat插件:File-->Setting-->Plugins-->GsonFormat-->OK2、new 一个新的Class空文件,然后 Alt+Insert组合快捷键,会弹出一个对话框如下。在对话框里面写Json对象。单击OK。3、再单击OK。4、好啦,生成啦。 http
阅读全文
jenkins 添加节点问题
摘要:没有 Launch agent via Java Web Start 选项 Manage Jenkins > Configure Global Security > TCP port for JNLP agents 选random
阅读全文
tomcat修改上下文path
摘要:server.xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/boss" docBase="ROOT" debug="0" reloadable="tr
阅读全文
scala 下载
摘要:http://downloads.lightbend.com/scala/2.12.3/scala-2.12.3.tgz http://confluence.jetbrains.com/display/SCA/Scala+Plugin+for+IntelliJ+IDEA file -> projec
阅读全文
spring 改变url
摘要:server: port: 9010 servlet: context-path: /console
阅读全文
springboot教程
摘要:https://gitee.com/didispace/SpringBoot-Learning
阅读全文
java 方法引用(method reference)
摘要:it -> it != null等价于Objects::nonNull
阅读全文
mybatis 记录
摘要:@Repositorypublic interface OrderMQConsumeMapper { Long saveMessage(@RequestParam(name="orderMQInfo") OrderMQInfo orderMQInfo); Integer updateConsumeS
阅读全文
mybatis 自动生成代码
摘要:https://blog.csdn.net/winter_chen001/article/details/77249029
阅读全文
Spring-Cloud的版本是如何定义的
摘要:https://blog.csdn.net/peterwanghao/article/details/79633275 Finchley 与 Spring Boot 2.0.x, 兼容,不支持 Spring Boot 1.5.x. Dalston 和 Edgware 与 Spring Boot 1.
阅读全文