Home > Mobile >  How to get Intellij Ultimate to deploy SpringBoot?
How to get Intellij Ultimate to deploy SpringBoot?

Time:11-21

My goal is to take my very simple "hello world" two-class SpringBoot app and deploy it on Tomcat and show a ThymeLeaf template. I'm compiling with JDK 17 with no errors.

No JAR or WAR (I've tried both, exploded and non-exploded) migrate to the Tomcat directories.

My question is:

Where are the key areas to control deployment from either IntelliJ building methods to Maven settings?

I never see any files migrating regardless of what settings I choose.

The Deployments tab is very confusing to me. I can't see any physical location specified in the settings to ensure things get where they need to be. I've gone through numerous tutorials and nothing causes files to be moved for SpringBoot. I get a 404 error for every output on localhost.

Thank you in advance.

My app:


@SpringBootApplication
public class MagicVisionApplication {

    public static void main(String[] args) {
        SpringApplication.run(MagicVisionApplication.class, args);
    }
}


@Controller
public class HomeController {

    @RequestMapping(value={"", "/", "home"})
    public String displayHomePage(Model model) {
        model.addAttribute("username", "John Doe");
        return "home.html";
    }
}```

CodePudding user response:

See the traditional deployment documentation part. enter image description here enter image description here

  • Related