我无法找到application.properties文件当我执行时

时间:2017-02-14 09:56:44

标签: java spring

  

BeanCreationException:创建名为' quartzScheduler'的bean时出错   在类路径资源[config.xml]中定义:调用init方法   失败;嵌套异常是java.io.FileNotFoundException:不能   打开ServletContext资源[/application.properties]                 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)   〜[弹簧豆-4.3.6.RELEASE.jar:4.3.6.RELEASE]

<bean id="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
      p:dataSource-ref="dataSource"
      p:configLocation="application.properties"/>

任何帮助请... config.xml和application.properties位于src / main / resources

0 个答案:

没有答案