Is there any way to set jndi.properties
file or to set topic in code? For now I put this file into src
folder, bit I really need to set this configuration in source code.
jdni.properties:
topic.logTopic=logTopic
Is there any way similar to eg
PropertyConfigurator.configure("path")
Could you please help?
只需在用于创建InitialContext的环境中设置属性即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.