Comments (5)
我本地跑了一下,没有这个问题啊,spring-boot-encrypt稍加改造,然后让它持续输出input和input1
@SpringBootApplication
@EnableApolloConfig
public class Application implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Value("${test.input}")
private String input;
@Value("${test.input1}")
private String input1;
@Override
public void run(String... args) throws Exception {
new Thread(() -> {
while (true) {
System.err.println("test.input 值 ENC(Ore69lUopDHL5R8Bw/G3bQ==) 解密后:" + input);
System.err.println("test.input1 不需要解密:" + input1);
try {
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}).run();
}
}
在Apollo中修改完test.input1=ckl33
就立马刷新了,http://106.12.25.204:8070/config.html?#/appid=spring-boot-encrypt
from apollo-use-cases.
@nobodyiam 您好,找到问题了,原因是jasypt-spring-boot-starter的版本升级导致的,描述的情形发生在
jasypt-spring-boot-starter的2.1.0版本,版本为1.16时,刷新是正常的,应该是2.1.0的改动会影响Apollo的功能,能不能请大佬研究下具体的原因,最好能兼容下,或者显示声明下2.1.0不兼容自动更新,花了好几天部署调试,都有点怀疑人生了,下次再也不敢乱调版本了,谢谢回复。
from apollo-use-cases.
后续研究一下~
from apollo-use-cases.
今天又测试了下jasypt-spring-boot-starter 1.16,发现不加密的字段可以动态刷新,加密的字段无法刷新,刷新加密字段时AutoUpdateConfigChangeListener没有触发
from apollo-use-cases.
后续研究一下~
jasypt-spring-boot-starter版本与apollo冲突问题导致不能实时刷新成功,后面有解决方案吗? 谢谢
from apollo-use-cases.
Related Issues (20)
- 针对Docker版本的apollo-quick-start来集成spring-boot-logger的问题 HOT 4
- 针对应用启动前需要读取文件配置的处理 HOT 4
- 动态刷新druid数据源实现 HOT 3
- 针对网关限流和apollo结合实现动态控制相关用例 HOT 4
- package com.ctrip.framework.apollo.use.cases.spring.boot.logger;官方演示demo配置有误 HOT 1
- 动态刷新日志疑问 HOT 2
- springboot1.5.4找不到org.springframework.boot.context.properties.bind这个包 HOT 3
- spring-cloud-gateway配合apollo做动态路由,删除路由时报错
- 集成zuul后偶尔会有部分请求超时
- 大佬,如果不集成apollo zuulRateLimit 怎么动态刷新配置?如果从redis 或者数据库取呢?
- 能否提供发布之前中间状态的便捷撤销功能?
- 为什么ssm项目中使用@ApolloConfigChangeListener不能实时收到更新配置变化,而springboot项目可以呢 HOT 9
- 请问apollo中多数据源如何配置 HOT 1
- 我用jasypt-spring-boot-starter的3.0.2也是同样的问题,这个后面有兼容的计划吗? HOT 2
- dubbo消费者无法解析apollo占位符 HOT 1
- logback-spring 占位符无法被替换 HOT 1
- @ApolloConfigChangeListener 无效 HOT 7
- 指定集群后本集群没有的配置并没有去默认集群读取 HOT 1
- [open-api] release namespace 相关问题 HOT 1
- Apollo和Spring Cloud Gateway结合时如何保证以Apollo上的路由信息为主,配置文件里的路由信息为辅 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-use-cases.