http://blog.csdn.net/cloume/article/details/52538626 Spring Boot中使用自定义的properties Spring Boot的application.properties中已经提供了很多默认的配置,如果要添加自定义的配置该怎么办呢?我们可以继续在application.properties中添加自定义的配置项,也可以使用新的配置文件,在里面添加自定义的配置项.比如说最近我在做一个简单的系统权限配置,我就把 系统的角色和角色可操作的权限
控制台应用程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; namespace test3 { class Program { static void Main(string[] args) { bool status = false; //连接共享目录 status = connec
//使用appdomain获取当前应用程序集的执行目录 string dir = AppDomain.CurrentDomain.BaseDirectory; //使用path获取当前应用程序集的执行的上级目录 dir = Path.GetFullPath(".."); //使用path获取当前应用程序集的执行目录的上级的上级目录 dir = Path.GetFullPath("../.."); 其他的获取根目录路径方法可以参考博文 http://www.cnblo