/*********************这个特性是为了使用Autofac的属性注入功能************************/ [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]//只能标记在属性或字段上 public class AutowiredAttribute : Attribute { }