ResourceBundle找不到BaseName Gradle项目Java

时间:2018-12-13 19:30:49

标签: java automation cucumber bdd

我正在尝试使用ResourcesBundle从file.properties中读取字段,这是代码:

Bot: Hey, what did you do from 2pm-5pm today?
User: I did jogging from 2pm-3pm
Bot: Added "Jogging" to your calendar from 2pm-3pm. What about from 3pm-5pm?
User: I did reading.
Bot: Added "reading" from 3pm-5pm to your calendar.

我在运行项目时会引发异常

  

找不到基本名称ConsultaExcel,语言环境es_CO的捆绑软件

属性文件位于src / main / resources内部的Resource文件夹中

1 个答案:

答案 0 :(得分:-1)

我可以通过重新安装IntelliJ IDEA并按缺陷安装插件来解决此问题