Idea to build Resin in the operating environment (Mac)

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
Here Insert Picture Description
I downloaded the tar.gz and extract to any directory by tar -zxvf own mac command.

Third, the configuration Idea

1, install the plug

Here Insert Picture Description

2, Configuration

The first step : Click Ideaj the top right corner [Edit Configurations], click [+] pop-up box number, no Resin option, as shown below:
Here Insert Picture Description
Here Insert Picture Description
Step Two : Click [setting] icon, then specify the path resin is provided JRE, finally click [Apply], then [OK].
Here Insert Picture Description
The third step : After setting Click [+] No, there have resin option, and then select [Local].
Here Insert Picture Description
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).
Here Insert Picture Description
Step Five : Click [Fix], select the first one.
Here Insert Picture Description
Step Six : After performing the fifth step, select [Server] button, change the [URL], then click [Apply], and finally click [OK].
Here Insert Picture Description
Step Seven : Select [Resin 3.1.8], then click [Run], you can run the application in the environment Resin.
Here Insert Picture Description
Step eight : pop up the following interface instructions to run successfully.
Here Insert Picture Description
Here Insert Picture Description

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>
Published 100 original articles · won praise 45 · views 640 000 +

Guess you like

Origin blog.csdn.net/wangzhongshun/article/details/99731668