java - What is the purpose of @TestConfiguration on a top-level class? -


spring boot 1.4 has brought many improvements testing.

i unclear of purpose of @testconfiguration. doesn't seem work expected.

i thought if use @testconfiguration on top-level class under /src/test/java gets picked @springboottest test (see here). seems not case. if instead use @configuration gets correctly picked up.

did misunderstand? manual wrong? there bug in spring boot code?

whenever have used <context:component-scan base-package="some.package" /> or @componentscan . scans . prevent spring boot provides @testcomponent should not picked scanning.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -