@SpringBootTest测试类需要添加@SpringBootTest注解@SpringBootTest(classes = 启动类.class)
@SpringBootTest
class TestApplicationTe
2026-03-03