Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
ecfb400d
Unverified
Commit
ecfb400d
authored
Feb 06, 2019
by
Jason Song
Committed by
GitHub
Feb 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1948 from nobodyiam/fix-1877
add servlet initializer for apollo-portal and apollo-adminservice
parents
5ca5a63f
4bb9d8ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/ServletInitializer.java
...rip/framework/apollo/adminservice/ServletInitializer.java
+18
-0
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/ServletInitializer.java
...com/ctrip/framework/apollo/portal/ServletInitializer.java
+18
-0
No files found.
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/ServletInitializer.java
0 → 100644
View file @
ecfb400d
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(song_s@ctrip.com)
*/
public
class
ServletInitializer
extends
SpringBootServletInitializer
{
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
AdminServiceApplication
.
class
);
}
}
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/ServletInitializer.java
0 → 100644
View file @
ecfb400d
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(song_s@ctrip.com)
*/
public
class
ServletInitializer
extends
SpringBootServletInitializer
{
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
PortalApplication
.
class
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment