[Idea] 在idea中使用jetty debug


1.添加jetty的maven插件

           <plugin>
              <groupId>org.mortbay.jetty</groupId>
              <artifactId>maven-jetty-plugin</artifactId>
              <version>6.1.26</version>
              <configuration>
                <connectors>
                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                    <port>8080</port>
                  </connector>
                </connectors>
                <scanIntervalSeconds>10</scanIntervalSeconds>
              </configuration>
            </plugin>

2.在Intell Idea中配置:

 

Run/Debug Configuration中add 一个maven configuration:

指定项目工程路径,goals设置为jetty:run,同时不要忘记在General和Runner中设置maven路径和jdk

3.启动debug即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM