Could not resolve placeholder in string value

后端 未结 11 1650
故里飘歌
故里飘歌 2020-12-01 01:00

I am trying to use properties from a .properties file, but it doesn\'t seem to work.

Here is my code:

@Service(\"ServiceFTP\")
@Transact         


        
11条回答
  •  余生分开走
    2020-12-01 01:32

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

    For example:

    @Value("${project.ftp.adresse}")
    

    becomes

    @Value("$ {project.ftp.adresse}")
    

提交回复
热议问题