23- Second Microservice Project

          Second  Microservice Project


Create service registry that links our existing microservices (department-service-A and user-service-A) and configure our microservices so that it can be tracked on eureka server.


This whole process takes in following steps

1- Go to Spring Initializr website(https://start.spring.io/) and 
Create a maven project naming service-registry with Eureka Server Dependency.


Image 1  - Spring Initializr


2- Import  service-registry into your workspace and add eureka configuration values(like port,register and fetch) and set values false into application.properties



service-registry--> src/main/resources--> application.properties 
server.port=8761
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false





3- Add dependency of Eureka Discovery Client in  pom.xml  of  user and department microservice


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.4</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.zeek</groupId>
    <artifactId>department-service-A</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>department-service-A</name>
    <description>First project for Spring Boot Microservices</description>
    <properties>
        <java.version>17</java.version>
        <spring-cloud.version>2021.0.7</spring-cloud.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-dependencies</artifactId>
        <version>${spring-cloud.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

</project>






4- In user and department services add eureka configuration values(like register,fetch,instance and url)  and set values true into application.properties



department-service-A--> src/main/resources--> application.properties 

spring.application.name=DEPARTMENT-SERVICE

server.port=8080

eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.instance.hostname=localhost
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/


spring.datasource.url=jdbc:mysql://localhost:3306/department?useSSL=false
spring.datasource.username=root
spring.datasource.password=root

# Hibernate properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

#create,create-drop
spring.jpa.hibernate.ddl-auto=update




user-service-A--> src/main/resources--> application.properties
 
spring.application.name=USER-SERVICE

server.port=8081

eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.instance.hostname=localhost
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/

spring.datasource.url=jdbc:mysql://localhost:3306/user?useSSL=false
spring.datasource.username=root
spring.datasource.password=root

# Hibernate properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

#create,create-drop
spring.jpa.hibernate.ddl-auto=update



5-  Add @EnableDiscoveryClient  in application class of user and department microservice (above @SpringBootApplication) and
@EnableEurekaServer in application class of service-registry microservice (above @SpringBootApplication)




6-  Run your service-registry only

Image 2 -  Running service registry without instances




7-  Run your service-registry , department-service-A , user-service-A

Image 3  -  Running service registry with instances



------------------------------------------------------------------------------------------------------

CONSOLE  FOR  SERVICE  REGITRY


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.0.7)

2023-06-01T16:36:40.254+05:30  INFO 24488 --- [           main] c.z.s.ServiceRegistryApplication         : Starting ServiceRegistryApplication using Java 18.0.1 with PID 24488 (C:\Users\zeesh\eclipse-workspace\A_workspace\service-registry\target\classes started by ZeeK in C:\Users\zeesh\eclipse-workspace\A_workspace\service-registry)
2023-06-01T16:36:40.258+05:30  INFO 24488 --- [           main] c.z.s.ServiceRegistryApplication         : No active profile set, falling back to 1 default profile: "default"
2023-06-01T16:36:41.296+05:30  INFO 24488 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=ed14ef2b-50db-3304-8395-4cd5db651d86
2023-06-01T16:36:41.610+05:30  INFO 24488 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8761 (http)
2023-06-01T16:36:41.618+05:30  INFO 24488 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-06-01T16:36:41.619+05:30  INFO 24488 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.8]
2023-06-01T16:36:41.736+05:30  INFO 24488 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-06-01T16:36:41.737+05:30  INFO 24488 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1415 ms
2023-06-01T16:36:42.602+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2023-06-01T16:36:42.604+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2023-06-01T16:36:42.806+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2023-06-01T16:36:42.807+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2023-06-01T16:36:43.718+05:30  WARN 24488 --- [           main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2023-06-01T16:36:43.741+05:30  INFO 24488 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2023-06-01T16:36:43.774+05:30  INFO 24488 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2023-06-01T16:36:43.774+05:30  INFO 24488 --- [           main] com.netflix.discovery.DiscoveryClient    : Client configured to neither register nor query for data.
2023-06-01T16:36:43.783+05:30  INFO 24488 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1685617603781 with initial instances count: 0
2023-06-01T16:36:43.817+05:30  INFO 24488 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initializing ...
2023-06-01T16:36:43.821+05:30  INFO 24488 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : Adding new peer nodes [http://localhost:8761/eureka/]
2023-06-01T16:36:43.945+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2023-06-01T16:36:43.945+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2023-06-01T16:36:43.945+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2023-06-01T16:36:43.945+05:30  INFO 24488 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2023-06-01T16:36:44.032+05:30  INFO 24488 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : Replica node URL:  http://localhost:8761/eureka/
2023-06-01T16:36:44.038+05:30  INFO 24488 --- [           main] c.n.e.registry.AbstractInstanceRegistry  : Finished initializing remote region registries. All known remote regions: []
2023-06-01T16:36:44.039+05:30  INFO 24488 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initialized
2023-06-01T16:36:44.052+05:30  INFO 24488 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2023-06-01T16:36:44.099+05:30  INFO 24488 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application UNKNOWN with eureka with status UP
2023-06-01T16:36:44.112+05:30  INFO 24488 --- [       Thread-9] o.s.c.n.e.server.EurekaServerBootstrap   : isAws returned false
2023-06-01T16:36:44.113+05:30  INFO 24488 --- [       Thread-9] o.s.c.n.e.server.EurekaServerBootstrap   : Initialized server context
2023-06-01T16:36:44.113+05:30  INFO 24488 --- [       Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl    : Got 1 instances from neighboring DS node
2023-06-01T16:36:44.113+05:30  INFO 24488 --- [       Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl    : Renew threshold is: 1
2023-06-01T16:36:44.113+05:30  INFO 24488 --- [       Thread-9] c.n.e.r.PeerAwareInstanceRegistryImpl    : Changing status to UP
2023-06-01T16:36:44.121+05:30  INFO 24488 --- [       Thread-9] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2023-06-01T16:36:44.128+05:30  INFO 24488 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8761 (http) with context path ''
2023-06-01T16:36:44.129+05:30  INFO 24488 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761
2023-06-01T16:36:44.208+05:30  INFO 24488 --- [           main] c.z.s.ServiceRegistryApplication         : Started ServiceRegistryApplication in 4.442 seconds (process running for 4.896)
2023-06-01T16:37:04.929+05:30  INFO 24488 --- [nio-8761-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-06-01T16:37:04.929+05:30  INFO 24488 --- [nio-8761-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2023-06-01T16:37:04.930+05:30  INFO 24488 --- [nio-8761-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2023-06-01T16:37:05.153+05:30  INFO 24488 --- [nio-8761-exec-2] c.n.e.registry.AbstractInstanceRegistry  : Registered instance USER-SERVICE/Zeeshan:USER-SERVICE:8081 with status UP (replication=false)
2023-06-01T16:37:05.813+05:30  INFO 24488 --- [nio-8761-exec-3] c.n.e.registry.AbstractInstanceRegistry  : Registered instance USER-SERVICE/Zeeshan:USER-SERVICE:8081 with status UP (replication=true)






------------------------------------------------------------------------------------------------------



CONSOLE  FOR   DEPARTMENT  SERVICE 




  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.4)

2023-06-01 16:37:47.350  INFO 17624 --- [           main] c.z.d.DepartmentServiceAApplication      : Starting DepartmentServiceAApplication using Java 18.0.1 on Zeeshan with PID 17624 (C:\Users\zeesh\eclipse-workspace\A_workspace\department-service-A\target\classes started by ZeeK in C:\Users\zeesh\eclipse-workspace\A_workspace\department-service-A)
2023-06-01 16:37:47.352  INFO 17624 --- [           main] c.z.d.DepartmentServiceAApplication      : No active profile set, falling back to 1 default profile: "default"
2023-06-01 16:37:47.969  INFO 17624 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-06-01 16:37:48.108  INFO 17624 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 129 ms. Found 1 JPA repository interfaces.
2023-06-01 16:37:48.344  INFO 17624 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=8f21c420-0fac-3c09-b150-8c1bd47cf192
2023-06-01 16:37:48.759  INFO 17624 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2023-06-01 16:37:48.769  INFO 17624 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-06-01 16:37:48.770  INFO 17624 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.58]
2023-06-01 16:37:48.880  INFO 17624 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-06-01 16:37:48.880  INFO 17624 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1471 ms
2023-06-01 16:37:49.058  INFO 17624 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-06-01 16:37:49.101  INFO 17624 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.5.Final
2023-06-01 16:37:49.255  INFO 17624 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2023-06-01 16:37:49.352  INFO 17624 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2023-06-01 16:37:49.488  INFO 17624 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2023-06-01 16:37:49.499  INFO 17624 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2023-06-01 16:37:49.997  INFO 17624 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-06-01 16:37:50.006  INFO 17624 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-06-01 16:37:50.333  WARN 17624 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-06-01 16:37:50.754  INFO 17624 --- [           main] DiscoveryClientOptionalArgsConfiguration : Eureka HTTP Client uses RestTemplate.
2023-06-01 16:37:50.939  WARN 17624 --- [           main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2023-06-01 16:37:50.959  INFO 17624 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2023-06-01 16:37:51.042  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2023-06-01 16:37:51.047  INFO 17624 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2023-06-01 16:37:51.069  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2023-06-01 16:37:51.397  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2023-06-01 16:37:51.399  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2023-06-01 16:37:51.402  INFO 17624 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2023-06-01 16:37:51.407  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1685617671406 with initial instances count: 1
2023-06-01 16:37:51.409  INFO 17624 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application DEPARTMENT-SERVICE with eureka with status UP
2023-06-01 16:37:51.409  INFO 17624 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1685617671409, current=UP, previous=STARTING]
2023-06-01 16:37:51.412  INFO 17624 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEPARTMENT-SERVICE/Zeeshan:DEPARTMENT-SERVICE:8080: registering service...
2023-06-01 16:37:51.435  INFO 17624 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2023-06-01 16:37:51.436  INFO 17624 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8080
2023-06-01 16:37:51.449  INFO 17624 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DEPARTMENT-SERVICE/Zeeshan:DEPARTMENT-SERVICE:8080 - registration status: 204
2023-06-01 16:37:51.508  INFO 17624 --- [           main] c.z.d.DepartmentServiceAApplication      : Started DepartmentServiceAApplication in 4.68 seconds (JVM running for 5.139)






------------------------------------------------------------------------------------------------------

CONSOLE  FOR   USER SERVICE 



  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.4)

2023-06-01 16:37:00.806  INFO 19884 --- [           main] c.z.u.UserServiceAApplication            : Starting UserServiceAApplication using Java 18.0.1 on Zeeshan with PID 19884 (C:\Users\zeesh\eclipse-workspace\A_workspace\user-service-A\target\classes started by ZeeK in C:\Users\zeesh\eclipse-workspace\A_workspace\user-service-A)
2023-06-01 16:37:00.809  INFO 19884 --- [           main] c.z.u.UserServiceAApplication            : No active profile set, falling back to 1 default profile: "default"
2023-06-01 16:37:01.419  INFO 19884 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-06-01 16:37:01.551  INFO 19884 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 115 ms. Found 1 JPA repository interfaces.
2023-06-01 16:37:01.777  INFO 19884 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=bbc58279-7ce7-30f7-9716-717253621ee6
2023-06-01 16:37:02.201  INFO 19884 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8081 (http)
2023-06-01 16:37:02.210  INFO 19884 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-06-01 16:37:02.210  INFO 19884 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.58]
2023-06-01 16:37:02.322  INFO 19884 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-06-01 16:37:02.322  INFO 19884 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1455 ms
2023-06-01 16:37:02.521  INFO 19884 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-06-01 16:37:02.564  INFO 19884 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.5.Final
2023-06-01 16:37:02.715  INFO 19884 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2023-06-01 16:37:02.812  INFO 19884 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2023-06-01 16:37:02.962  INFO 19884 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2023-06-01 16:37:02.975  INFO 19884 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2023-06-01 16:37:03.496  INFO 19884 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-06-01 16:37:03.505  INFO 19884 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-06-01 16:37:03.847  WARN 19884 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-06-01 16:37:04.287  INFO 19884 --- [           main] DiscoveryClientOptionalArgsConfiguration : Eureka HTTP Client uses RestTemplate.
2023-06-01 16:37:04.454  WARN 19884 --- [           main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2023-06-01 16:37:04.472  INFO 19884 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2023-06-01 16:37:04.553  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2023-06-01 16:37:04.558  INFO 19884 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2023-06-01 16:37:04.578  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2023-06-01 16:37:04.579  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2023-06-01 16:37:05.027  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2023-06-01 16:37:05.028  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2023-06-01 16:37:05.031  INFO 19884 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2023-06-01 16:37:05.035  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1685617625034 with initial instances count: 0
2023-06-01 16:37:05.038  INFO 19884 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application USER-SERVICE with eureka with status UP
2023-06-01 16:37:05.039  INFO 19884 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1685617625039, current=UP, previous=STARTING]
2023-06-01 16:37:05.040  INFO 19884 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_USER-SERVICE/Zeeshan:USER-SERVICE:8081: registering service...
2023-06-01 16:37:05.066  INFO 19884 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8081 (http) with context path ''
2023-06-01 16:37:05.067  INFO 19884 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8081
2023-06-01 16:37:05.144  INFO 19884 --- [           main] c.z.u.UserServiceAApplication            : Started UserServiceAApplication in 4.859 seconds (JVM running for 5.329)
2023-06-01 16:37:05.157  INFO 19884 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_USER-SERVICE/Zeeshan:USER-SERVICE:8081 - registration status: 204
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application is null : false
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2023-06-01 16:37:35.034  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application version is -1: false
2023-06-01 16:37:35.035  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2023-06-01 16:37:35.059  INFO 19884 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : The response status is 200







































































Comments

Popular posts from this blog

INDEX OF JAVA 8 and MICROSERVICES BLOG