简体   繁体   中英

How to run a spring boot groovy project in vs code

made the default build of spring boot application using groovy (maven builder) in visual studio code when trying to run it gives the error "Failed to run this project 'demo' because it does not contain any main class." opened the same project in IntelliJ IDEA everything worked

Groovy is an agile dynamic language for Java virtual machine, which is finally compiled into.class bytecode file to run the project.

Try to compile the groovy file which includes main method manually, then under Maven Selections, right click the project name, clean and compile the project again.

在此处输入图像描述

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