I am trying to understand why Spring Roo puts database.properties in META-INF / spring where it will be deployed as part of the WAR.
Of course, the database properties are environmentally dependent and must be outside the WAR, where can they be changed without rebuilding? I am going to change the line in application-context.xml to search for property files anywhere in the class path and move the file to where it will not be packed with WAR.
Is there something I am not getting here that will make me regret it?
Spring PropertyPlaceholderConfigurer pathpath :
<context:property-placeholder location="classpath*:META-INF/spring/*.properties,file:myapp*.properties"/>
myapp *.properties, ( ..), , war/ear/whatever. , .
, , () database ,
database
database properties set
database properties remove
database properties list
, META-INF/spring.
META-INF/spring
Source: https://habr.com/ru/post/1765446/More articles:Mysql: calculate frequency of visits - mysqlHow do F # custom types map to CLR types? - c #Fiddler emulator and Windows Phone 7 - redirect to proxy server - proxyThe number of samples C # during a period of time - c #Difference between ID and control.ClientID OR why use control.ClientID if I can access the control via ID - javascriptПолучите исходный номер строки из .get_model() и .get_path() после обращения к TreeView - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1765448/itemscontrol-with-itemsource-set-to-observablecollection-of-usercontrols-fails-to-render-in-visual-tree&usg=ALkJrhgYycLyU0LYX9XGtjkfzHI71pax0QAdditional C # arguments in an abstract method - c #Call shell script in java? - javaMaking a Python script accessible to the whole system - pythonAll Articles