Preface:
-
Ideaui 2019 (official website https://www.jetbrains.com/idea/?fromMenu )
Installing the software is simple matter to download the selected path to get away, pay attention to the file name in English;
However, according to our traditional habit of saving, cracked steps online a lot, it is not difficult, but you can use the money Gangster money to buy it.
-
Tomcat (the official website http://tomcat.apache.org/ )
I have been using the decompressed version, it is more convenient.
-
jdk (1.8)
Used before the eclipse basically do not move environment variables, if more than one ah Shi jdk installed, you see the environment variable path which is configured.
Crack
This step is very important, the first on a data package
Links: https://pan.baidu.com/s/1qrDJDz8aA0zYHtndxg-8KQ extraction code: pg5v
I installed the 2019 version, crack the code is very new, after installing software downloads fool, I will not screenshot
Find the jar file bin bag and put it down
Open the selected two files
Then in the file are added, -javaagent: F: \ IdeaIU \ IntelliJ IDEA 2019.1.3 \ bin \ jetbrains-all.jar
Then open the software activation code
Click ok on the line, then you can start playing it
IDEA file directory Description
bin directory is some implementation and configuration related packages
help documentation manual directory assistance;
jre64 directory is jre operational support;
lib directory is running jar kits;
licenese directory is a license agreement;
plugins directory plugins
redist directory is miscellaneous;
Another important directories similar
C:\Users\2019091008\.IntelliJIdea2019.1
IDEA's setting introduction
Enter the settings page, top to bottom, mainly the appearance and behavior, keyboard shortcuts, edit, plug-in, version control, build the implementation of the deployment settings, languages and frameworks, tools;
Theme Settings
Adjust the background color
Set Hover tips
Eclipse again, we move the mouse over a class, the class of the document will be prompted to interpret information;
IDEA is not in default under way, we need to set up;
Editor->General
Then we have to check under here, behind the default setting is to delay the time half a second, here we set 1s;
Once set, we move the mouse to the class to see
Display method delimiter
Editor->General ->Appearance
Show method separators check under
effect
More convenient to see the code
Ignore case Tips
IDEA default prompt is case-sensitive, such as the input string, not prompted String Class; settings where
Editor->General ->Code Completion
Automatic guide packet
By default, including finished Eclipse classes, is the need to manually import the package, but the package guide IDEA provides automatic setting
Editor->general->Auto Import
All selected from the drop-down and the next two to check; can then automatically imported package, a package is canceled.
Cancel single-line display Tabs
Tab If a plurality of codes, the following defaults:
But sometimes you want to see more code files, we want to display multiple lines:
You can configure under:
Editor->General ->Editor Tabs
Hook can be removed;
Set the font
Editor->Font
Here you can according to their preferences, set the font style, font size, including high line; the Size Recommendation 16
Configuration documentation templates annotations
New class does not default document annotation information, we generally developed under must engage in, easy to find someone;
Editor->File and Code Templates ==>Includes File Header
effect
Set file encoding
All of our places are set to UTF-8 Unity
Editor -> File Encodings
Set automatic compilation
Then Eclipse, the project is automatically compiled, IDEA is not in default, we need configuration;
Build, Execution, Deployment -> the two check Compiler, compiled automatically setting items, comprising a plurality of modules automatically compiled parallel structures;
Horizontal or vertical display Code
We sometimes in order to align or parameter code, the code required to make a horizontal or vertical display, Eclipse, we can directly drag;
IDEA, we have the right file Tab, shown below:
Shortcuts into eclipse
IDEA's shortcuts into eclipse
File -> Settings -> Keymap
Here you can choose Eclipse then Applay;
The main method provided rapid generation and System.out.println
Editor -> Live Templates drop-down choose Enter
Set the default browser
IDEA shortcuts Introduction
alt + shift + s alt + inster and get set and automatically generate the constructor ctrl + d deleted row ctrl + shift + o import package ctrl + shift + f code formatter ctrl + shift + y change case ctrl + f lookup ( current file) Ctrl + H global Search double-click the shift Find file tab and shift + tab to move forward and backward overall Codealt + / prompts (custom modifications)
alt + / shortcut is occupied elsewhere, so first remove;
According to the search shortcuts
Then we give this casually add a new shortcut, and then delete the alt + /
Then we search for basic, automatic prompt to find a shortcut
Add Alt + /
alt + shift + r rename parameters and methods
Copy down one line ctrl + alt + Down keys ctrl + / single line comment ctrl + shift + / multi-line comment alt + up and down keys to select a single row or multiple rows up or down ctrl + shift + t View source (current java file and some type, direct ctrl + point into the can) Alt + Enter generates a return value / correction eclipse is ctrl +. 1 Alt + right and left arrow keys to jump on or next edit page ctrl + - or ctrl + = shrink or expand the single method ctrl + shift + - or ctrl + shift + = contraction of all or expand all ways to customize the configuration ctrl + shift + h View method overrides structure ctrl + alt + h to see the caller method F4 to view the selected class class inheritance relationship ctrl + o view the class structure
ctrl + Alt + shift + u view class structure diagram
Begin configuring Tomcat
Open ideaui
New general dynamic web project
File==>New==>project
projectSDK ==> New select jdk ==> ok
Select Web Application ==> next
Give the project name and select the storage path ==> Finish
Even if the project is to create a good web Le, but we have a bit to create two folders lib and classes to store a third party jar package, classes compiled output file
Right-click ==> New ==> Driectory ==> Enter the name (repeated twice are input lib, classes)
If this was not on the cold ah, brother dei
==>ok
File -> Project Structure (shortcut: Ctrl + Shift + Alt + S) -> select Module:
Then select the Dependencies -> Module SDK will be selected for their JDK-> "+" No -> select 1 "Jars or Directories"
==> select lib files created
==> Double-click lib ==> Jar Directory
A good nothing wrong! Created
Configuring tomcat
Open the menu Run -> select Edit Configuration can also click on the box at the top right to select the Add the Configuration
Click on the "+" ==> select "Tomcat Server" ==> select "Local" ==> select Configure
==> Click Cancel After launch other to keep the default just fine
Well, now tomcat configuration is complete it !
He began to deploy in tomcat web project
Run ==> Edit Configurations ==> Select Tomcat container == just created> Select Deployment ==> Click to the right of the "+" ==> select Artifact ==> Select the web project ==> Application contex fill in a name
Then the process of writing programs and on the same eclipse, jsp written in the WEB-INF
effect
Note: tomcat and jdk version of the best to be the same, when this error will not run
The landlord also reported that a mistake can not run because the version of the problem is that so do not make the same mistake and I.
I have changed, right above step is faulty version of tomcat
Complex dynamic web project
Maven project
File==》Settings
Start creating maven project
file==》 module
Increase the allocation
Name :archetypeCatalog
Value :internal
==>ok==>Next==>finish
Well completion
Remember also be configured to give maven tomcat again
JRebel installation and crack
A. Acquaintance JRebel
JRebel is a hot deployment to achieve development tool that allows you to modify the java code when you start the program directly compiled into effect, without having to manually restart.
For the usual small programs that benefit is not obvious, but as soon as the development of larger projects, you will find that for thermal deployment will save a lot of time you reboot, significantly improve the efficiency of individual developers.
Of course, now there are mechanisms in fact IDEA hot deployment, but the personal feeling is there is no perfect JRebel come
2. For the IDEA plug-in installation JReable
2.1 a manner: Online installed
like any other plug-in installed, please follow these steps to plug in advance in accordance with the
File -> Settings ... -> Plugins -> Browase repositories ... -> find the following interface input Jrebel Find
According to the success will be prompted to restart, this time to restart IDEA (Figure If there is a problem (like him to try several times) during installation, use the second approach offline installation)
III. Activation crack JReable
3.1 reverse proxy software download
- According to their own system to download the corresponding version, window system, you need to download this version ReverseProxy_windows_amd64.exe
- Download: https://github.com/ilanyu/ReverseProxy/releases/tag/v1.4
- After downloading run as shown (Note: Do not close the reverse proxy program before activation is successful)
- To also prepare the information
Links: https://pan.baidu.com/s/16ml1GOwhPz8ukVLz40sQWw extraction code: jwe7
3.2 start activation activation JReable
The steps of operation: File -> Setting ... -> JRebel -> Activate now
Try to use the following activation address:
http://127.0.0.1:8888/88414687-3b91-4286-89ba-2dc813b107ce http://127.0.0.1:8888/ff47a3ac-c11e-4cb2-836b-9b2b26101696 http://127.0.0.1:8888/11d221d1-5cf0-4557-b023-4b4adfeeb36a
Click Change license activation
After activation must be manually switched to the offline mode use, the process steps of FIG operates: File -> Setting ... -> JRebel -> Work offline l -> OK
IV. Use JRebel
How to use JRebel to hot deploy our project it is very simple, as follows:
When you run the project, this time to go to modify the java code, then use a small hammer on a map compiled (or shortcut key ctrl + F9), you will find this time without having to restart the project, you modify the code in force
of course you if even this step did not want to compile a manual to operate, that's OK! JRebel provides us with is automatically compiled, as long as you make the following settings, JRebel will persist if you modified the code and automatically compile! ! !
JRebel use effect:
After changing the background code does not need to restart the service can take effect