How to pass a Map with application.properties

后端 未结 4 1329
失恋的感觉
失恋的感觉 2020-12-14 08:29

I have implemented some authorization in a webservice that needs be configured.

Currently the user/password combo is hardcoded into the bean configuration. I would l

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 08:59

    I think you are looking for something similar

    http://www.codejava.net/frameworks/spring/reading-properties-files-in-spring-with-propertyplaceholderconfigurer-bean

    You can pick values from .properties similarly and assign it to your map.

提交回复
热议问题