package cn.test;

import cn.config.MysqlNacosConf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Component
public class Demo {
    @Autowired
    private MysqlNacosConf mysqlNacosConf;

    @GetMapping("/get")
    public String get() {
        System.out.println("nacosConfig.getDriverClassName() = " + mysqlNacosConf.getUrl());
        return mysqlNacosConf.getUrl();
    }

}
