Skip to content
Snippets Groups Projects
Commit aeef967e authored by Julian Horner's avatar Julian Horner
Browse files

Minor improvements

parent 554ca10b
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/** /**
* Eureka server for registering services. * Class for starting eureka server.
* *
* @author Julian * @author Julian
* *
...@@ -21,11 +21,11 @@ public class Application { ...@@ -21,11 +21,11 @@ public class Application {
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------
/** /**
* Starts the application. * Start the application.
* *
* @param args The arguments * @param args The arguments
*/ */
public static void main(final String[] args) { SpringApplication.run(Application.class, args); } public static void main(String[] args) { SpringApplication.run(Application.class, args); }
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------
} }
# Give a name to the eureka server
spring: spring:
application: application:
name: eureka-server name: eureka-server # Identifier of this application
# HTTP Server (Tomcat) port
server: server:
port: 8761 # default port for eureka server port: 8761 # default port for eureka server
# Configure this Discovery Server
eureka: eureka:
client: # Not a client, don't register with yourself client:
registerWithEureka: false registerWithEureka: false
fetchRegistry: false fetchRegistry: false
# We don't need it since the eureka server is obviously not a client.
serviceUrl: serviceUrl:
defaultZone: http://localhost:8761/eureka/ defaultZone: http://localhost:8761/eureka/ # URL of the eureka server for registration
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment