Giter Site home page Giter Site logo

Comments (5)

nobodyiam avatar nobodyiam commented on September 26, 2024

我本地跑了一下,没有这个问题啊,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

image

from apollo-use-cases.

techzealot avatar techzealot commented on September 26, 2024

@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.

nobodyiam avatar nobodyiam commented on September 26, 2024

后续研究一下~

from apollo-use-cases.

techzealot avatar techzealot commented on September 26, 2024

今天又测试了下jasypt-spring-boot-starter 1.16,发现不加密的字段可以动态刷新,加密的字段无法刷新,刷新加密字段时AutoUpdateConfigChangeListener没有触发

from apollo-use-cases.

milosun1995 avatar milosun1995 commented on September 26, 2024

后续研究一下~
jasypt-spring-boot-starter版本与apollo冲突问题导致不能实时刷新成功,后面有解决方案吗? 谢谢

from apollo-use-cases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.