springboor export war deployment tomcat code does not start code, browser input url does not respond

Solution:

    Add the SpringBootServletInitializer startup class (ps: To solve the problem, you still need to see the error message reported in the log log)

package com.syfri.digitalplan;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * Digitalplan program startup class
 *
 * @author lixiaoyang
 * @date September 29, 2017 09:00:42
 */
 public class DigitalplanServletInitializer extends SpringBootServletInitializer {

    @Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DigitalplanApplication.class);    
    }

}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324634328&siteId=291194637