Could not resolve placeholder in string value

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

    I got same error in my Micro-service, whenever you declare @Value annotation in program i.e @Value("${project.api.key}")

    make sure that your application.properties file with same values should not be blank project.api.key= add some values

    MostIMP :otherwise it will throw error "Error creating bean with name 'ServiceFTP': Injection of autowired dependencies"

提交回复
热议问题