Run a main method in a web project

Asked

Viewed 80 times

0

I’m using the Intellij and I’m with a web project and with the Wildfly already configured in the options Run. I created a class with the main method for testing in this same project and I want to run it. How can I do it ? Always when I click on Run wildfly is iniciado.

public class Testes {

    public void main(String[] args) {
        System.out.println("Teste");

    }
}
  • Try Shift + Alt + F10

  • @nullptr it opens a popup with Wildfly and Edit Configurations.

  • https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000156824-How-to-choose-main-class

  • @nullptr in mine don’t have any options there :/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.