Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java datasource-cfg.properties文件被放置在资源文件夹中,但我仍然在eclipse中得到文件not found exception_Java_Spring Mvc_Spring Security_Spring Jdbc - Fatal编程技术网

Java datasource-cfg.properties文件被放置在资源文件夹中,但我仍然在eclipse中得到文件not found exception

Java datasource-cfg.properties文件被放置在资源文件夹中,但我仍然在eclipse中得到文件not found exception,java,spring-mvc,spring-security,spring-jdbc,Java,Spring Mvc,Spring Security,Spring Jdbc,我正在使用: Eclipse 4.6(霓虹灯) SpringMVC4.x SpringSecurity 4.x SpringJDBC4.x (注释配置) 我得到以下例外情况: java.io.FileNotFoundException: class path resource [datasource-cfg.properties] cannot be opened because it does not exist 我只将其保存在Java资源文件夹中,但仍引发相同的异常

我正在使用:

  • Eclipse 4.6(霓虹灯)
  • SpringMVC4.x
  • SpringSecurity 4.x
  • SpringJDBC4.x
  • (注释配置)
我得到以下例外情况:

java.io.FileNotFoundException: class path resource [datasource-cfg.properties] cannot be opened because it does not exist
我只将其保存在Java资源文件夹中,但仍引发相同的异常