一、启动Euerka服务
1、在启动类里用@propertySource引入全局配置文件noteapp-service.properties:
如上图。左侧为某服务配置文件properties,右侧为noteapp-service.properties。当启动项目时,application.properties指向noteapp-service.properties;
如上图,如果配置了---全文配置文件,则在编码时运行项目,就要配置该外置文件的路径,例如appnotepath=F:\wenjian;
log4j参考文章:https://blog.csdn.net/sinat_30185177/article/details/73550377
logback参考文章:https://blog.csdn.net/qianyiyiding/article/details/76565810
https://blog.csdn.net/inke88/article/details/75007649