How to run jetty from within intellij?

后端 未结 1 1029
时光取名叫无心
时光取名叫无心 2021-02-14 05:16

How can I start up a jersey or spring mvc app from intellij (ultimate edition) using jetty adn debug an api call and break on the end point?

I don\'t won\'t to setup a c

相关标签:
1条回答
  • 2021-02-14 05:52

    You can also add jetty plugin to maven:

    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>9.2.2.v20140723</version>
            </plugin>
        </plugins>
    </build>
    

    And then run maven command to start server and deploy application:

    mvn jetty:run
    
    0 讨论(0)
提交回复
热议问题