l-qiang / BlogGitalk

0 stars 0 forks source link

Java + Appium + 夜神模拟器实现学习强国积分任务自动化 | 刘强 #5

Open l-qiang opened 4 years ago

l-qiang commented 4 years ago

https://l-qiang.github.io/2020/01/15/Java+Appium+%E5%A4%9C%E7%A5%9E%E6%A8%A1%E6%8B%9F%E5%99%A8%E5%AE%9E%E7%8E%B0%E5%AD%A6%E4%B9%A0%E5%BC%BA%E5%9B%BD%E7%A7%AF%E5%88%86%E4%BB%BB%E5%8A%A1%E8%87%AA%E5%8A%A8%E5%8C%96/

Be Stronger

wzcosmos commented 4 years ago

我遇到下列问题: java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.github.LitterBabyApplication]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/xxqg.properties] Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/xxqg.properties] 请问该如何解决?

l-qiang commented 4 years ago

@wzcosmos 我遇到下列问题: java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.github.LitterBabyApplication]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/xxqg.properties] Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/xxqg.properties] 请问该如何解决?

找不到xxqg.properties文件,实在不行你把xxqg.properties的配置全复制到application.properties里面,然后把com.github.xuexi.properties包下面的类去掉@PropertySource注解