# Cài đặt IntelliJ IDEA Ultimate + cấu hình LiveReload local
## I. Cài đặt IntelliJ IDEA
**Nguồn : https://zhile.io/2020/11/18/jetbrains-eval-reset.html**

**Tải phiên bản mới nhất của IntelliJ IDEA trên trang chủ:**
https://www.jetbrains.com/idea/download/#section=windows

```
Chọn bản Ultimate để sử dụng được Spring Boot
Mở phần mềm lên và chọn trial 30 ngày để dùng thử 30 ngày miễn phí
```
## RESET TRIAL
##### Bước 1: Download plugin
```
\\10.30.174.220\data chung\USERS\bangvc3\SOFT\ide-eval-resetter-2.1.10.zip
```
##### Bước 2: Mở Settings/Preferences… -> Plugins
##### Bước 3: Chọn “Install Plugin From Disk…” và chọn file JAR vừa giải nén và khởi động lại IDE

##### Bước 4: Sử dụng, chọn Help -> Eval Reset


Tick chọn: **Auto reset before per restart**
Thành quả:
Trước khi reset:

Sau khi reset:

## II.Cấu hình LiveReload
https://www.codejava.net/frameworks/spring-boot/spring-boot-auto-restart-and-live-reload-in-intellij-idea
##### Step 1: add the following dependency to your project’s Maven build file:
```==
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
```
##### Step 2: enable Build project automatically

##### Step 3: Turn on compiler.automake.allow.when.app.running

##### Result: SpringBoot auto build & restart whenever detected changes in sourcecode.
