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