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 or testInject method,FooService object is correct.
To confirm this bug comes from spring boot , I added BasicApplication class, It is a normal spring application. In BasicApplication , It will correct running.
I’m sorry, my English not so good , I hope you can understand the above words .