嗨,我正在使用带有swagger和webjars的spring mvc 4.0,但是我的 webjars文件夹未在我在applicationContext.xml中指定的位置创建。 我在这里缺少什么?
依赖性如下
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<!-- <scope>compile</scope> -->
<version>${springfox-swagger-ui.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<!-- <scope>compile</scope> -->
<version>${springfox-swagger-ui.version}</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>${org.webjars.version}</version>
</dependency>
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
<mvc:resources mapping="/swagger-ui.html" location="classpath:/META-INF/resources/swagger-ui.html"/>