@@ -0,0 +1,531 @@
+package com.zf.config;%0A%0Aimport com.zf.Application;%0Aimport org.springframework.boot.builder.SpringApplicationBuilder;%0Aimport org.springframework.boot.context.web.SpringBootServletInitializer;%0A%0A/**%0A * Created by kaenry on 2016/5/21.%0A * for war, run server error if not%0A * ServletInitializer%0A */%0Apublic class ServletInitializer extends SpringBootServletInitializer %7B%0A%0A    @Override%0A    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) %7B%0A        return application.sources(Application.class);%0A    %7D%0A%7D%0A

fix war error