简体   繁体   中英

How to run a springmvc+gradle project from command line?

In my springmvc project, I use gradle as a build tool.

But our FE developers always complain about that why they have to start the project in IntelliJ IDEA, but they don't use the IDE as their editor at all.

so, recently I made a lot of research on running my project from command line.

Please help.

If gradle is used and all is configured well, try gradle run while using the application plugin.

You do need to load the plugin

apply plugin: 'application'

and define the main class of your application

mainClassName = "org.gradle.sample.Main"

Further parameters can be defined as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM