jsp读取properties文件

jsp读取properties文件

jsp中读取properties文件,并把值设到js变量中:

mpi.properties文件内容:

MerchantID=00000820
CustomerEMail=136992@163.com
VirCardNoIn=000000000200
VerficationCode=hhdp2p

存储properties文件内容的jsp

String Verfication = ResourceBundle.getBundle("mpi").getString("VerficationCode");






原文地址:https://www.cnblogs.com/Codenewbie/p/3642038.html