WebLogic Implementing a hot deployment----spring-loaded

Source: Internet
Author: User

Use spring-loaded to enable hot deployment

first, how to configure spring-loaded

    1. 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.

    2. in the project domain 's bin/startweblogic.bat file, find this code setsave_java_options=%java_options% After this code, add the following:

    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.