git clone
git clone https://github.com/kkz-01/opentelemetry-demo.git
execute docker-compose
i use docker-desktop in windows
docker-compose up -d
after that you can see container like this
init mysql
use nacos require create table in mysql. I provide sql script.
1、execute alter_root_login_plugin.sql
2、execute nacos_init.sql
after execute sql table in mysql like this
restart nacos
you can access nacos UI through the following URL
http://localhost:8848/nacos/
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
finally you can see as follow
then you can see error in springboot project