ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

springcloud gateway加和jasypt-spring-boot-starter共同使用时会报错 #301

Closed zqkwcyx closed 1 year ago

zqkwcyx commented 2 years ago

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationManager': Unsatisfied dependency expressed through field 'iUserApiService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.bairuitech.anychat.feign.service.IUserApiService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cachedCompositeRouteLocator' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cachedCompositeRouteLocator' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'routeDefinitionRouteLocator' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'routeDefinitionRouteLocator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gatewayProperties' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.StackOverflowError

jasypt版本

com.github.ulisesbocchio jasypt-spring-boot-starter 3.0.4
ulisesbocchio commented 1 year ago

3.0.5 is out. Reopen if still an issue

wsdszhou commented 1 year ago

这个问题在3.0.5仍然存在

3.0.5 is out. Reopen if still an issue

wj15118940771 commented 3 months ago

spring项目非cloud,当我在配置文件bootstrap.yaml里设置属性jasypt.encryptor.bootstrap: false,不会出现错误