@Value in Springboot returns null

前端 未结 5 943
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 00:22

I have the application.properties, which is located in the resources

apllication.properties

hsm.provider=software
hsm.name=TestHsm
h         


        
5条回答
  •  执笔经年
    2021-01-18 01:09

    I've added your code into a Spring boot project and it is in a working condition.

    Checkout this 53482633 repository and follow the instructions to get it up and running.

    Also compare your code against this application to figure out what was going wrong at your end.

    In case if you still face any issues, please post it here.

提交回复
热议问题