这是因为使用Maven要求配置文件放在resources文件夹下,而放在resources root 或者放在项目下都会报空指针异常(Exception in thread “main” java.lang.NullPointerException),亲测。
需放在如上图文件夹中
这是因为使用Maven要求配置文件放在resources文件夹下,而放在resources root 或者放在项目下都会报空指针异常(Exception in thread “main” java.lang.NullPointerException),亲测。
需放在如上图文件夹中