I am trying to acces a value defined in application.properties in a following way:
@Value("${server.url}")
private String serverUrl;
It works on embedded tomcat, but when I upload it to Weblogic I get the following error:
Error creating bean with name 'authorizationServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'server.url' in value "${server.url}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'server.url' in value "${server.url}"
How can I make use of the application.properties file when hosting app on Weblogic server?