Spring Could not Resolve placeholder

后端 未结 8 2080
说谎
说谎 2020-12-08 10:29

I\'m fairly new to spring so excuse me if this is a dumb question. When I try to launch a program I get the following error: java.lang.IllegalArgumentException: Could

8条回答
  •  [愿得一人]
    2020-12-08 11:29

    My solution was to add a space between the $ and the {.

    For example:

    @Value("${appclient.port:}")
    

    becomes

    @Value("$ {appclient.port:}")
    

提交回复
热议问题