Could not resolve placeholder in string value

后端 未结 11 1636
故里飘歌
故里飘歌 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:40

    This error appears because the spring project doesn't read the file properties (bootstrap.yml or application.yml). In order to resolve this, you must add dependency in your pom.xml

       
            org.springframework.cloud
            spring-cloud-context
        
    

提交回复
热议问题