Load properties file in servlet?

后端 未结 2 1393
臣服心动
臣服心动 2021-01-13 14:42

I have a java maven project. i have placed a properties file in src/main/resources folder.

src/main/resources
  |
  |___properties
        |
            


        
2条回答
  •  礼貌的吻别
    2021-01-13 15:02

    Get rid of the "classpath" prefix.: .getBundle("/properties/custom")

    The "classpath" prefix is not a standard, it is defined by some frameworks like spring.

提交回复
热议问题