Could not open ServletContext resource [/mybatis-config.xml]
See original GitHub issueI will mybatis-config.xml
profiling in src/main/resources/*
, When start being given Could not open ServletContext resource [/mybatis-config.xml]
As can be seen from the annex screenshot Description
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Could not open ServletContext resource [/mybatis-config.xml]
application.properties mybatis config spring.datasource.schema=import.sql mybatis.config-location=mybatis-config.xml logging.level.root=WARN ...
Read more >Could not open ServletContext resource [/classpath*:WEB-INF ...
5 and MyBatis 3.2.7 with maven. I have my myBatis-config.xml file under WEB-INF/myBatis folder. While trying to create the sqlSessionFactory ...
Read more >Maven – Spring+ MyBatis+ mvn Project , java.io ... - iTecNote
FileNotFoundException : Could not open ServletContext resource [/myBatis/myBatis-config.xml] at org.springframework.beans.factory.support.
Read more >Could not open ServletContext resource [/mybatis-config.xml]
Could not open ServletContext resource [/mybatis-config.xml] ; sqlSessionFactory ; property name · dataSource ; property name · configLocation ...
Read more >Could not open ServletContext resource - CodeAntenna
说明要不文件名有误,要不该文件的路径设置有误。进入spring-dao.xml文件查看相关配置... Could not open ServletContext resource [/mybatis-config.xml].
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In a web application we must use classpath: prefix
加 classpath: 在路径前边就可以了 @xiaoxing598