先在pom.xml文件中引入相关依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
然后定义测试类进行模拟:
标签:xml,web,启动,boot,测试,类中 From: https://www.cnblogs.com/yws-blog/p/17482655.html
先在pom.xml文件中引入相关依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
然后定义测试类进行模拟:
标签:xml,web,启动,boot,测试,类中 From: https://www.cnblogs.com/yws-blog/p/17482655.html