如题,怎么在父pom(spring-boot-starter-parent)中排除掉springmvc模块的依赖?在网上查了很多,有说在子pom里添加web依赖,然后改scope为test,但是不管用啊
通过exclusion标签,如下
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</exclusion>
</exclusions>