Skip to content

kkz-01/opentelemetry-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step1-git clone

git clone

git clone https://github.com/kkz-01/opentelemetry-demo.git

Step2-execute docker-compose

execute docker-compose

i use docker-desktop in windows

docker-compose up -d

step2-docker-compose

after that you can see container like this

step2-docker-compose-2

Step3-execute sql

init mysql

use nacos require create table in mysql. I provide sql script.

Step3-before-execute-sql

1、execute alter_root_login_plugin.sql

Step3-execute-sql-1

2、execute nacos_init.sql

Step3-execute-sql-2

after execute sql table in mysql like this

Step3-after-execute-sql

Step4-restart Nacos

restart nacos

you can access nacos UI through the following URL

http://localhost:8848/nacos/

Step4

add following configuration in nacos

spring:
  datasource:
    url: jdbc:mysql://localhost:3306/naos?autoReconnect=true&allowMultiQueries=true&sslMode=DISABLED&useUnicode=true&characterEncoding=UTF8&useLocalSessionState=true&connectionTimeZone=UTC
    username: root
    password: root
test:
  flag: true

Step4-2

Step4-3

finally you can see as follow

Step4-4

Step5-run SpringBoot

Step5

Step6-change configuration in nacos

Step6

Step6-3

Step7

then you can see error in springboot project

Step7

Step8

Step8-debug-condition

Step8-debug-condition-2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages