I. Background
Resin idea to build in the operating environment, you can click the Run button in the idea directly to debug the application.
Two, Resin Download
Download: https://caucho.com/products/resin/download/gpl#download
I downloaded the tar.gz and extract to any directory by tar -zxvf own mac command.
Third, the configuration Idea
1, install the plug
2, Configuration
The first step : Click Ideaj the top right corner [Edit Configurations], click [+] pop-up box number, no Resin option, as shown below:
Step Two : Click [setting] icon, then specify the path resin is provided JRE, finally click [Apply], then [OK].
The third step : After setting Click [+] No, there have resin option, and then select [Local].
Step four : Set [Name], select [] Application server, set [JRE], I am here to set up port 8081 (default: 80, in order to avoid conflict with other containers, this is for me: 8081).
Step Five : Click [Fix], select the first one.
Step Six : After performing the fifth step, select [Server] button, change the [URL], then click [Apply], and finally click [OK].
Step Seven : Select [Resin 3.1.8], then click [Run], you can run the application in the environment Resin.
Step eight : pop up the following interface instructions to run successfully.
Fourth, debugging
Want to see the source code you need to add the following dependence in pom.xml configuration file:
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-servlet</artifactId>
<version>1.0.0.Beta9</version>
</dependency>