Cov txheej txheem:

Dab tsi yog Property placeholder hauv mule?
Dab tsi yog Property placeholder hauv mule?

Video: Dab tsi yog Property placeholder hauv mule?

Video: Dab tsi yog Property placeholder hauv mule?
Video: ET Yaj: Yog Hmoov Dab Tsi 2024, Kaum ib hlis
Anonim

ruaj ntseg Qhov Chaw Chaw yog tus txheej txheem tseem ceeb rau kev khaws peb cov ntaub ntawv rhiab zoo li Tus Neeg Siv ID thiab Password ruaj ntseg (encrypted/cypher-text) hauv Khoom ntaub ntawv. Cov ntaub ntawv yog khaws cia rau hauv lub vaj tse ntaub ntawv raws li tus nqi tseem ceeb khub. Qhov no vaj tse cov ntaub ntawv tuaj yeem khaws cov ntaub ntawv xws li User ID, Password, Tokens, Keys thiab lwm yam.

Ib yam li ntawd, nws yog nug, koj siv cov khoom ruaj ntseg placeholder li cas?

Teem Ntiaj Teb Ruaj Ntseg Qhov Chaw Nyob Hauv Ntiaj Teb Mule Configuration, tsim Ruaj Ntseg Qhov Chaw Nyob . Configure lub teb qhov tseem ceeb ntawm lub ntiaj teb no. Nws yog lub npe tshwj xeeb rau koj lub ntiaj teb ruaj ntseg placeholder . Hom algorithm koj tau siv los encrypt cov ntsiab lus ntawm Daim Ntawv Pov Thawj Vault.

Kuj Paub, Kuv yuav ua li cas thiaj ruaj ntseg cov ntaub ntawv hauv mule? cov ntaub ntawv thiab xaiv Qhib nrog -> Mule Properties Editor. Nyem rau ntawm ntsuab + icon hauv lub studio. Hauv Ntxiv Tshiab Khoom qhov rais, ntxiv tus yuam sij thiab tus nqi. Nyem rau ntawm Encrypt khawm yog tias koj xav encrypt tus nqi, thiab tsis yog tias koj tsis xav tau.

Kuj nug, dab tsi yog mule deploy zog?

ib xyoos dhau los. ` mul - xa mus . khoom 'yog a vaj tse tshwj xeeb rau kev xa tawm qhov twg nws muaj khoom uas tswj koj kev xa tawm . Qhov no vaj tse tsuas yog txais kev txhawb nqa config. Piv txwv ntawm config vaj tse yog 'config.resources' qhov twg qhov no muaj comma-separated config cov npe yuav tsum tau ua.

Kuv yuav saib cov ntaub ntawv muaj nyob hauv mule li cas?

Yuav Ua Li Cas Nyeem Cov Ntaub Ntawv Cov Ntaub Ntawv Hauv Mule

  1. Ua ntej tsim cov ntaub ntawv nrog.properties extension (yuav ua tau txawv extension tab sis pom zoo) nyob rau hauv src/main/resources #first-lub xeem npe ua ke Jane = Doe John = Mavis.
  2. Tsim ib lub ntiaj teb no rau cov ntaub ntawv khoom.
  3. Siv ${} - "${Jane}"
  4. Siv p() - p("Jane")

Pom zoo: