In my Spring boot application, I need to store the list of State and some configuration related to State. For example - State of GA and FL allows lottery, but Hawaai do not.. so my JSON object that store this info looks like
states:[
{"code":"GA", "lottery":"yes"},
{"code":"HI", "lottery":"no"}
..
}
Bear with me..if this sounds like naive question. I am trying to find out if application.properties is a nice place to store this kind of information. I mean, I can either store in the properties and load at startup..or move it to a Database and do the same. But since application.properties is handy and does not require connecting to a database, sounds like an easy approach. Need your views. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire