Java jar包启动脚本

摘要: ```shell #!/bin/bash APP_HOME=/wdcloud/app/rps/rps-module-admin APP_JAR=rps-module-admin-*.jar APP_PIDS=$(ps ax | grep java | grep $APP_HOME | grep -v grep | awk '{print $1}') function start(){ if [... 阅读全文
posted @ 2019-04-22 17:39 朱春旺 阅读(612) 评论(0) 推荐(0)

使用jquery模拟请求,测试项目是否存在跨域限制

摘要: 1.Get 请求 2.Post 请求 阅读全文
posted @ 2019-04-22 15:22 朱春旺 阅读(292) 评论(0) 推荐(0)

springboot 2.1.4 源码默认logback-spring.xml

摘要: logback spring.xml 是由几个文件组成的,整个的一个xml为 阅读全文
posted @ 2019-04-11 10:53 朱春旺 阅读(1046) 评论(0) 推荐(0)

IDEA 代码风格设置

摘要: 1.类注释 File Settings Editor File and Code Templates Includes FileHeader 2.缩进 采用4个空格缩进,或者设置tab键为4个空格, 不能勾选Use tab character,参考下图 File Setting Editor Cod 阅读全文
posted @ 2019-04-09 15:59 朱春旺 阅读(3365) 评论(0) 推荐(2)

springboot 实现配置文件给常量赋值

摘要: ```java @Component @ConfigurationProperties(prefix = "task.cron") public class TaskCronParam implements InitializingBean { private String testCron; public static String TEST_CRON; @Override publ... 阅读全文
posted @ 2019-03-22 15:58 朱春旺 阅读(1324) 评论(0) 推荐(0)

IDEA Can't Update No tracked branch configured for branch master or the branch doesn't exist.

摘要: IDEA Can't Update No tracked branch configured for branch master or the branch doesn't exist.To make your branch track a remote branch call, for examp 阅读全文
posted @ 2019-03-12 17:29 朱春旺 阅读(21786) 评论(2) 推荐(0)

@EnableFeignClients 注解

摘要: feignClents在spring容器里找不到的原因 当使用的feignClents 来自引用别的工程时,需要指定包名,如果不指定就算使用ComponentScan 扫描也不行 阅读全文
posted @ 2019-03-12 15:38 朱春旺 阅读(19233) 评论(0) 推荐(0)

springboot 定时任务

摘要: 1.启动类新增注解 @EnableScheduling 2.定时任务类 3.cron 规则 秒(0~59) 分钟(0~59) 小时(0~23) 天(月)(0~31,但是你需要考虑你月的天数) 月(0~11) 天(星期)(1~7 1=SUN 或 SUN,MON,TUE,WED,THU,FRI,SAT) 阅读全文
posted @ 2019-03-11 14:48 朱春旺 阅读(161) 评论(0) 推荐(0)

SpringCloud 学习网址记录

摘要: SpringCloud Gateway https://www.cnblogs.com/ityouknow/p/10141740.html 熔断降级的概念 https://blog.csdn.net/qq_37312838/article/details/82966209 阅读全文
posted @ 2019-03-08 11:07 朱春旺 阅读(204) 评论(0) 推荐(0)

consul 搭建

摘要: windows 1. 下载consul https://www.consul.io/downloads.html 2. 解压至consul_1.4.2 3.配置环境变量 4.启动 cmd窗口 5.验证 Linux 1. 下载consul 2. 解压 3. 启动 阅读全文
posted @ 2019-03-04 11:49 朱春旺 阅读(406) 评论(0) 推荐(0)