Hello, I am currently working on a toy project by applying your library. First of all thank you for your hard work.
But while using your library, I ran into an issue.
That is, it cannot properly register JasyptConfig in other submodules as beans in the test environment.
@Import, bean configuration in TestConfiguration... none of that works.
Please leave some answers regarding this issue.
If there's anything I've missed, please tell me.
Thank you.
(Plus JasyptConfig.class is defined in another sub module and @SpringBootTest class is defined in other module too)
Here are some cases.
Case 1
If i do not configure anything in my IntergrationTestConfig(for @SpringBootTest)
Case 2
*If JasyprtConfig.class imported by @Import
Meesages
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jasyptStringEncryptor' defined in com.breakingbad.workerhub.core.config.JasyptConfig: Unsatisfied dependency expressed through method 'jasyptStringEncryptor' parameter 0; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'jasyptStringEncryptor': Requested bean is currently in creation: Is there an unresolvable circular reference?
Case 3
If i declared StringEncryptor with @Bean
Messages
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'jasyptStringEncryptor': Requested bean is currently in creation: Is there an unresolvable circular reference?
And plus it's funny fact that it's working well in running SpringApplication.
Hello, I am currently working on a toy project by applying your library. First of all thank you for your hard work.
But while using your library, I ran into an issue.
That is, it cannot properly register JasyptConfig in other submodules as beans in the test environment.
@Import, bean configuration in TestConfiguration... none of that works.
Please leave some answers regarding this issue.
If there's anything I've missed, please tell me.
Thank you.
(Plus JasyptConfig.class is defined in another sub module and @SpringBootTest class is defined in other module too)
Here are some cases.
Case 1 If i do not configure anything in my IntergrationTestConfig(for @SpringBootTest)![image](https://user-images.githubusercontent.com/93923979/220129487-fc72a8a4-0ca6-40cd-9640-93456a573004.png)
Case 2 *If JasyprtConfig.class imported by @Import![image](https://user-images.githubusercontent.com/93923979/220129985-281b0f20-fc6e-462f-bb58-3ecc838cd9d2.png)
Meesages
Case 3 If i declared StringEncryptor with @Bean![image](https://user-images.githubusercontent.com/93923979/220130293-5364b1ae-0cc5-4364-984f-e6f3719719b7.png)
Messages
And plus it's funny fact that it's working well in running SpringApplication.