breezefaith
2017-08-21 06:11Intellij中spring配置文件报错
1
这几天刚从MyEclipse转到Intellij IDEA,我的spring-webmvc-servlet.xml配置文件是没有问题的,项目部署后也可以正常运行,但是我的强迫症让我受不了项目有error和warning,有没有大神可以帮我解决一下这个问题?
详细代码如下:
<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:component-scan base-package="cn.breezefaith"></context:component-scan>
<mvc:annotation-driven></mvc:annotation-driven>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/jsp/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
</beans>
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- springboot 使用 PageHelper 进行分页报错 :无法自动获取数据库类型,请通过 helperDialect 参数指定!
- sql
- java-ee
- intellij-idea
- 2个回答
- 请求大佬支援!IDEA的yml文件不变小叶子
- spring
- java
- maven
- intellij-idea
- 1个回答
- idea mysql连接池 NullPointerException
- intellij-idea
- java-ee
- spring
- maven
- tomcat
- 1个回答
- IDEA maven设置里面的Repositories这个设置问题
- java
- maven
- intellij-idea
- 3个回答
- Springboot启动报错 一个是找不到url 一个是找不到dao
- spring
- java
- maven
- intellij-idea
- java-ee
- 1个回答
换一换