SpringBoot 发布方式

发布方式
         构建jar包,命令行运行Spring Boot程序
         步骤:
            File---》setting---》maven---》Runner
            在VM Option输入:-Dmaven.multiModuleProjectDirectory=$M2_HOME
            ---》maven Project ---》install(最后会提示build SUCCESS)
         
         构建war包,发布到Tomcat
         com.lw
    girl
    0.0.1-SNAPSHOT
    war//改变成war
    
         同时还需要配置tomcat
        
            org.springframework.boot
            spring-boot-starter-tomcat
        

        将生成好的war包:girl-0.0.1-SNAPSHOT.war
        copy到F:\apache-tomcat-7.0.52\webapps下面
        然后在bin目录下启动tomcat

你可能感兴趣的:(Java,-----,SpringBoot)