Solr config, encrypting data config file

后端 未结 2 1358
野趣味
野趣味 2021-01-20 19:12

How can I encrypt the data config portion here?:

 


        
2条回答
  •  忘掉有多难
    2021-01-20 20:03

    See: https://wiki.apache.org/solr/SolrConfigXml#System_property_substitution

    You can keep them as properties in the file /conf/solrcore.properties and refer them in your data config. So your data-config.xml will be like:

    
    

    where everything in ${...} is a property in solrcore.properties like:

    jdbc.host=http://127.0.0.1
    jdbc.port=3306
    db.name=emp
    ...
    

提交回复
热议问题