1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00
包子 b8d5d709e9
middleware/logging add traceid to the printed log,modify the example code and update the dependent version (#877)
* middleware/logging add traceid to the printed log,modify the example code and update the dependent version

* Fix the problem that the configuration could not use arrays
2021-04-28 14:30:51 +08:00
..
2021-03-11 23:42:28 +08:00
2021-03-05 23:49:25 +08:00
2021-04-25 22:26:31 +08:00
2021-03-05 23:49:25 +08:00
2021-03-11 23:42:28 +08:00
2021-03-05 23:49:25 +08:00
2021-03-11 23:42:28 +08:00

How to run this blog example server

  1. You should ensure that your mysql server is running.
  2. Ensure that the database named testdb has been created, otherwise you should execute the following database script:
create database testdb;
  1. Modify the configs/config.yaml file and add your mysql information in the data source:
data:
  database:
    driver: mysql
    source: root:password@tcp(127.0.0.1:3306)/testdb?parseTime=True
  1. Run your blog server:
make run