idea+jrebel+springboot hot deployment

1. Installation

1. Find plugins in idea's preference, search for jrebel, and click apply

 

2. Activation

1. Go to https://my.jrebel.com/account/how-to-activate, register an account, and get an activation code

2. Find Jrebel in the idea's preference and click to activate

3. Enter the activation code just now

4. Click OK (I don't remember whether it is apply or ok or what, almost a button that means that), you can activate it.

3. Configure hot deployment

1. Find the compiler in the preference, check make project automatically, click Apply, and confirm.

2. Press the key combination shift+ctl+alt+/ (the default is this, my mac has changed the keys, so mine is shift+cmd+alt+/), select registry

3.勾选上compiler.automake.allow.when.app.running

4. Use jrebel to restart the project

5. Modify the file and you will find that the hot deployment is started~

6. You can modify the redeploy frequency in jrebel of preference, I set it to 11s

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325251674&siteId=291194637