随笔 - 239  文章 - 0  评论 - 29  阅读 - 69万

随笔分类 -  SpringCloud

SpringCloud启动类指定扫描包路径
摘要://如果这个启动类所在的包路径隐藏的很深,则需要指定扫描包。否则默认扫描启动类所在的子包路径下 @SpringBootApplication(scanBasePackages="com.joyce.users") public class MyApplication{ public static void main(String[] args){ Spr... 阅读全文
posted @ 2019-03-19 11:15 梦幻朵颜 阅读(5481) 评论(0) 推荐(0) 编辑
SpringCloudConfig配置中心git库以及refresh刷新
摘要:基于git库的Spring Cloud Config配置中心代码demo下载地址:https://gitlab.com/mySpringCloud/config-git SpringBoot版本: 1.5.9.RELEASE SpringCloud版本:Edgware.RELEASE 1、Sprin 阅读全文
posted @ 2019-02-17 19:39 梦幻朵颜 阅读(2323) 评论(0) 推荐(0) 编辑
Druid密码加密
摘要:pom里引用: 加密解密示例: 在atomikos里使用密码加密时,解密代码这样写: . 阅读全文
posted @ 2019-02-03 17:19 梦幻朵颜 阅读(2845) 评论(0) 推荐(0) 编辑
Spring Cloud Turbine微服务集群实时监控
摘要:本文代码下载地址: https://gitlab.com/mySpringCloud/turbine SpringBoot版本:1.5.9.RELEASE (稳定版) SpringCloud版本:Edgware.RELEASE 启动微服务顺序是: joyce-eureka-server 注册中心 j 阅读全文
posted @ 2019-01-31 09:50 梦幻朵颜 阅读(614) 评论(0) 推荐(0) 编辑
SpringBoot集成Atomikos使用Oracle数据库mybatis、jta框架
摘要:项目中需要数据库分布式事物的实现,于是采用了atumikos技术。 因为生产上需要稳定,所以采用了springboot 1.5.9.RELEASE版本。 本文代码gitlab下载地址: https://gitlab.com/atomikos/springBootMultDB-druidOracle. 阅读全文
posted @ 2019-01-20 16:41 梦幻朵颜 阅读(3355) 评论(2) 推荐(0) 编辑
SpringBoot与SpringCloud的版本对应详细版
摘要:在实际开发过程中,我们需要详细到一一对应的版本关系:Spring 官方对应版本地址: (https://start.spring.io/actuator/info),建议用firefox浏览器打开,你会看见格式化好了json信息: 手动记录一些经本人实际验证可行的版本对应: 序号 版本对应 1 <s 阅读全文
posted @ 2019-01-12 21:56 梦幻朵颜 阅读(117008) 评论(5) 推荐(18) 编辑
SpringCloud注解和配置以及pom依赖说明
摘要:在本文中说明了pom依赖可以支持什么功能,以及支持什么注解,引入该依赖可以在application.properties中添加什么配置。 1、SpringCloud 的pom依赖 <parent><groupId>org.springframework.boot</groupId><artifact 阅读全文
posted @ 2018-09-17 17:21 梦幻朵颜 阅读(15561) 评论(0) 推荐(0) 编辑
SpringCloud项目启动报错:NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable
摘要:报错表象: 当启动SpringClud项目报错: Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable 或 java.lang.NoSuch 阅读全文
posted @ 2018-09-16 14:23 梦幻朵颜 阅读(3726) 评论(1) 推荐(0) 编辑
@EnableEurekaServer无法正常import原因是spring-cloud-dependencies版本太低
摘要:去maven repository 库里 http://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies 查看 spring-cloud-dependencies的版本在Jun, 2018日期 阅读全文
posted @ 2018-09-16 13:19 梦幻朵颜 阅读(24811) 评论(0) 推荐(1) 编辑


点击右上角即可分享
微信分享提示