jasypt-spring-boot icon indicating copy to clipboard operation
jasypt-spring-boot copied to clipboard

spring.main.allow-bean-definition-overriding lose config

Open cuber2simple opened this issue 5 years ago • 13 comments
trafficstars

com.github.ulisesbocchio jasypt-spring-boot-starter 3.0.3 com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery 2.2.1.RELEASE import jasypt the feign overriding setting will failover.......

cuber2simple avatar Jul 03 '20 06:07 cuber2simple

help!!!

javaerHei avatar Oct 17 '20 13:10 javaerHei

help!!!

zzujustme avatar Nov 05 '20 08:11 zzujustme

com.github.ulisesbocchio jasypt-spring-boot-starter 3.0.3 com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery 2.2.1.RELEASE import jasypt the feign overriding setting will failover.......

解决掉了吗

zzujustme avatar Nov 05 '20 08:11 zzujustme

help!!!

解决了吗

zzujustme avatar Nov 05 '20 08:11 zzujustme

碰到同样的问题 请求如何解决的?

whbhhh avatar Nov 27 '20 07:11 whbhhh

使用jasypt 框架后 在bootstrap.yml 中配置 spring: main: allow-bean-definition-overriding: true 在bootstrap 阶段 正常,启动阶段会发生 这个属性丢失。

我的临时解决方法是在 application.yml 中 再写一遍 spring: main: allow-bean-definition-overriding: true

k631583871 avatar Jan 11 '21 02:01 k631583871

I don't understand a word of what's being discussed here... care to explain?

ulisesbocchio avatar Aug 25 '21 16:08 ulisesbocchio

jasypt.encryptor.bootstrap=true 这个属性为 true的时候 , 日志开头就会出现 app_name_IS_UNDEFINED ,无法获取名字的问题 当 false的时候,就正常 项目源码 demo-jasypt.zip 20211209114919

k631583871 avatar Dec 09 '21 03:12 k631583871

@ulisesbocchio Is the information I provided helpful?

k631583871 avatar Feb 06 '22 14:02 k631583871

@ulisesbocchio The introduction of a dependency will result in "spring.main.allow-bean-definition-overriding" property Forced closure

xiaomizhou2 avatar Aug 02 '22 07:08 xiaomizhou2

@k631583871 想咨询一下 这个jasypt.encryptor.bootstrap 属性是干什么的,为什么关闭了它就不报 spring.main.allow-bean-definition-overriding失效了

xiaomizhou2 avatar Aug 02 '22 07:08 xiaomizhou2

@xiaomizhou95 我觉得这个是一个问题,正常应用的 bootstrap 阶段配置是可以传递给 application 的. 但是引入jasypt ,就造成配置无法传递下去. 要是 bootstrap阶段没有需要加密的配置,可以 jasypt.encryptor.bootstrap=false 这样配置来关闭这个功能来解决问题

k631583871 avatar Aug 02 '22 15:08 k631583871

@xiaomizhou95 我觉得这个是一个问题,正常应用的 bootstrap 阶段配置是可以传递给 application 的. 但是引入jasypt ,就造成配置无法传递下去. 要是 bootstrap阶段没有需要加密的配置,可以 jasypt.encryptor.bootstrap=false 这样配置来关闭这个功能来解决问题

好的 谢谢

xiaomizhou2 avatar Sep 16 '22 09:09 xiaomizhou2