Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Please confirm it again that properties file is placed under classpath directly under bin or build folder. Commented May 24, 2014 at 9:08
  • This is a gradle based project. I have placed it under src/main/resources. It is there under build directory also (resources/main/sample.properties). Commented May 24, 2014 at 9:25
  • I'm not sure if this is the problem or what version of Spring you're running. But try updating the XSD to the proper versions. It now uses 3.0 which might not be the correct version to use. Commented May 24, 2014 at 9:43
  • I changed it to 3.2 now since I'm using 3.2.4.RELEASE. But still no luck :( Commented May 24, 2014 at 9:48
  • I fixed it by placing the context:property-placeholder in applicationContext.xml instead of spring-servlet. Commented May 24, 2014 at 10:11