-
Notifications
You must be signed in to change notification settings - Fork 41.2k
When I use spring-boot to create an object that supports transactions, the object can not be correctly created #9416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Your
You can avoid the problem by not injecting any dependencies into the configuration class that's producing the custom validator. We could possibly help you to avoid the problem by consuming the |
Injecting a |
@wilkinsona In the process of reproducing this problem, I found that some changes in the code will trigger this problem, I can bypass it to avoid triggering the problem. However, you have solved my question, thank you. |
@wilkinsona Can I close this one now that SPR-15629 is fixed, or is there something else on our end to do? |
@philwebb We need to add |
Unfortunately, the underlying Framework problem's still there. I've opened SPR-15807. |
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/lanmolsz/spring-boot-bugs
this github address can reproduce the problem
the FooService object injected into
BootApplication
is a plain object, not an supports transactions proxy object.When I commented
myValidator
method ortestInject
method,FooService object is correct.To confirm this bug comes from spring boot , I added
BasicApplication
class, It is a normal spring application. InBasicApplication
, It will correct running.I’m sorry, my English not so good , I hope you can understand the above words .
The text was updated successfully, but these errors were encountered: