解决方案:
import (
"go-micro.dev/v4"
"github.com/go-micro/plugins/v4/server/grpc"
)
func main() {
service := micro.NewService(
// This needs to be first as it replaces the underlying server
// which causes any configuration set before it
//