09 2021 档案
摘要:@Component public class SpringContextUtil implements ApplicationContextAware { private static ApplicationContext context = null; /* (non Javadoc) * @T
阅读全文
摘要:注册中心对应微服务需添加security插件,但是其它微服务不需要加。 删除时curl -x http:user:pwd@ip:port
阅读全文
摘要:主要是以下配置: prefer-ip-address: true #访问路径可以显示IP地址ip-address: 微服务服务器ip地址 当两个微服务在不同服务器时,需打开端口(阿里云大网端口)
阅读全文
摘要:每个微服务在jenkins里一个项目 可以配置发版时选择分支 jenkins会先从git拉取代码,在本地编译,成功后推送到目标服务器。 linux比较方便,按照备份、停止进程、启动三个脚本执行。windows因为cmd不支持nohup模式,应该作为服务运行。 linux启动后可以将pid存在一个文件
阅读全文