SSM问题 之 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
<!--引入外部的配置文件-->
<context:property-placeholder location="classpath:jdbc.properties"/>
- 整合ssm时 此处的 location中的classpath在不写时会报以上错误
- 仅仅mybatis整合spring时 不写不报错