When spring boottest performs unit testing, the injection object reports an error and cannot be tested

Use springboottest for unit testing, but an error is reported when injecting Service , and an error is reported when starting

springboot conduct unit testing. The. Java file directory to be tested should be at the same level or lower level of the project startup class

Similar Posts: