Skip to content

Commit

Permalink
add servlet initializer for apollo-portal and apollo-adminservice
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam committed Feb 6, 2019
1 parent 5ca5a63 commit 4bb9d8a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.ctrip.framework.apollo.adminservice;

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

/**
* Entry point for traditional web app
*
* @author Jason Song([email protected])
*/
public class ServletInitializer extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(AdminServiceApplication.class);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.ctrip.framework.apollo.portal;

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

/**
* Entry point for traditional web app
*
* @author Jason Song([email protected])
*/
public class ServletInitializer extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(PortalApplication.class);
}

}

0 comments on commit 4bb9d8a

Please sign in to comment.