Use spring-loaded to enable hot deployment
first, how to configure spring-loaded
download two files, one is Springloaded-1.2.0.release.jar, the other is file.conf, save in any directory, directory requirements must be in English, and there are no spaces and special characters.
in the project domain 's bin/startweblogic.bat file, find this code setsave_java_options=%java_options% After this code, add the following:
- Set save_java_options=
%java_options%-javaagent:d:\devtools\spring_loaded\springloaded-1.2.0.release.jar- Noverify-djava.security.auth.login.config=d:/devtools/spring_loaded/file.conf
Congratulations, by completing the above steps, you can start your hot deployment journey!
Second, after the above steps are completed, when you post your project to the war package released to WebLogic, do not have to restart WebLogic can take effect your changes
Content.
1) Do not restart WebLogic is more convenient, but if I only modify the content of the project's Web page, but also to republish, this does not seem to be convenient;
2) At this point, we also want to do the front-end hot deployment, how to operate: just modify the weblogic.xml file, you can:
Add the following configuration to the weblogic.xml
<!-- Development with -
< Span style= "font-size:13px;font-family: ' Courier New '; color: #3F7F7F;" >virtual-directory-mapping >
Span style= "font-size:13px;font-family: ' Courier New '; color: #008080;" >< local-path > d:\test_app\ src \webroot </ local-path >
Span style= "font-size:13px;font-family: ' Courier New '; color: #008080;" >< url-pattern > *. JSP </ url-pattern >
Span style= "font-size:13px;font-family: ' Courier New '; color: #008080;" >< url-pattern > *. JS </ url-pattern >
Span style= "font-size:13px;font-family: ' Courier New '; color: #008080;" >< url-pattern > *. CSS </ url-pattern >
Span style= "font-size:13px;font-family: ' Courier New '; color: #008080;" >< url-pattern > *. HTML </ url-pattern >
</ virtual-directory-mapping >
After this configuration, WebLogic again accesses the jsp,js,css,html file, it will fetch the files from the configured requirements directory;
This will be OK;
This article is from the "Small Li Guangzhi Blog" blog, please be sure to keep this source http://6817977.blog.51cto.com/6807977/1546182
WebLogic Implementing a hot deployment----spring-loaded