Create structure:
1 | . |
pom.xml web.xml
add dependency
1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
add app config
1 | <?xml version="1.0" encoding="UTF-8"?> |
Servlet
container action
1 | package com.leon; |
IntelliJ IDEA
- Open Module Setting
- Set Project SDK/ Product/ Artifact direcotry
- Set Module resource folder, compile dependencies.
- Set Facets/ Artifact