- 当修改了java文件时,在IntelliJ中按:‘Ctrl+Shift+F9’ 将重新编译该java文件,
如果修改了多个java文件,按‘Ctrl+F9’ 可以重新编译整个工程。<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.9.v20180320</version> <configuration> <!-- http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html --> <scanIntervalSeconds>0</scanIntervalSeconds> <!-- By Default, jetty start on port 8080 --> <httpConnector> <port>9092</port> </httpConnector> <systemProperties> <force>true</force> <systemProperty> <name>catalina.home</name> <value>${project.build.directory}/logs/</value> </systemProperty> </systemProperties> </configuration> </plugin>
## 启动方式
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190814173635904.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMDYzMTQx,size_16,color_FFFFFF,t_70)
thymeleaf按指定次数循环
<p th:each="i:${#numbers.sequence(0,5)}" th:text="${i}"/>