Deploy Spring Boot to Tomcat

后端 未结 3 1281
北荒
北荒 2020-12-02 11:06

So I am new to Spring - so I thought I would try Spring Boot

I am using a Maven to build - I set up a view requests, when I run it as \"App\" looks like it starts t

3条回答
  •  醉话见心
    2020-12-02 11:31

    The chapter Packaging executable jar and war files in the Spring Boot reference documentation states:

    To build a war file that is both executable and deployable into an external container you need to mark the embedded container dependencies as “provided”, e.g:

    
        
        
        war
        
        
            
                org.springframework.boot
                spring-boot-starter-web
            
            
                org.springframework.boot
                spring-boot-starter-tomcat
                provided
            
            
        
    
    

提交回复
热议问题