Is there a way to automatically reload the w760 resource file? I want to find an easy way to change xml configuration at runtime. The Xml file is not in the pathpath folder.
Any ideas?
THX :)
If you meant that you want to avoid redeploying your server to change the xml configuration, you can check out JRebel http://zeroturnaround.com/jrebel/ .
If this is the application contest that you want to update, use ConfigurableApplicationContext.refresh () or, more specifically, for the web environment, AbstractRefreshableWebApplicationContext , you can see this using the context: property-placeholder.
Create your own extension for the ResourceBundle interface and use this to search for your rows instead of Spring. This way you can control things like reboot.
Yes.
Spring provides a ReloadableResourceBundleMessageSource that can reload a properties file using cacheSeconds . It supports property files in *.properties format and the XML format used by Properties.loadFromXML () .
*.properties
If your xml file is in other formats, you must make your own resource loader by expanding ReloadableResourceBundleMessageSource and implement your logic to parse the XML file by overriding its loadProperties (resource resource, String file name) .
Source: https://habr.com/ru/post/1389474/More articles:How to get a method parameter in an array? - c #How to create snapshots using GetStreamsToSnapshot in EventStore 3.0 - cqrsFacebook app not configured for mobile access - facebookIs DECLARE_DYNAMIC required for abstract base classes in MFC? - c ++Spring MVC 3 Command Object values get lost between GET and POST operations - spring-mvciOS: mobile device management - iphoneSymfony2: how to make FOSUserBundle username unique - symfonyThe difference between BigInteger.probablePrime () and other primitive algorithms - javaWhat is the best way to detect processor cache flaws when running an algorithm? - cachingWhy is this Haskell feature slow? - optimizationAll Articles