Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
openSource
spring-cloud-netflix
Commits
0608f987
Commit
0608f987
authored
Jul 14, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure server port is 8080 by default
parent
e42328fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
EurekaClientAutoConfiguration.java
...latform/netflix/eureka/EurekaClientAutoConfiguration.java
+5
-5
EurekaInstanceConfigBean.java
...ork/platform/netflix/eureka/EurekaInstanceConfigBean.java
+1
-1
No files found.
spring-platform-netflix-core/src/main/java/org/springframework/platform/netflix/eureka/EurekaClientAutoConfiguration.java
View file @
0608f987
...
...
@@ -36,10 +36,12 @@ import com.netflix.discovery.EurekaClientConfig;
*
*/
@Configuration
@EnableConfigurationProperties
({
EurekaClientConfigBean
.
class
,
EurekaInstanceConfigBean
.
class
})
@EnableConfigurationProperties
({
EurekaClientConfigBean
.
class
,
EurekaInstanceConfigBean
.
class
})
@ConditionalOnClass
(
EurekaClientConfig
.
class
)
@ConditionalOnExpression
(
"${eureka.client.enabled:true}"
)
public
class
EurekaClientAutoConfiguration
implements
ApplicationListener
<
ContextRefreshedEvent
>
{
public
class
EurekaClientAutoConfiguration
implements
ApplicationListener
<
ContextRefreshedEvent
>
{
@Autowired
private
EurekaClientConfigBean
clientConfig
;
...
...
@@ -54,9 +56,7 @@ public class EurekaClientAutoConfiguration implements ApplicationListener<Contex
@PostConstruct
public
void
init
()
{
DiscoveryManager
.
getInstance
().
initComponent
(
instanceConfig
,
clientConfig
);
DiscoveryManager
.
getInstance
().
initComponent
(
instanceConfig
,
clientConfig
);
}
@PreDestroy
...
...
spring-platform-netflix-core/src/main/java/org/springframework/platform/netflix/eureka/EurekaInstanceConfigBean.java
View file @
0608f987
...
...
@@ -53,7 +53,7 @@ public class EurekaInstanceConfigBean implements EurekaInstanceConfig {
private
boolean
instanceEnabledOnit
;
@Value
(
"${server.port:
80
}"
)
@Value
(
"${server.port:
${SERVER_PORT:${PORT:8080}}
}"
)
private
int
nonSecurePort
=
80
;
private
int
securePort
=
443
;
...
...
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