292.6. 备注

当设计一个服务组件作为模板时,通常您不希望它在不出现 "tailed" 配置的情况下启动它。例如,默认配置。

要防止您的 Service 组件从默认配置添加 policy = ConfigurationPolicy.REQUIRE ' to the class level '@Component 注解开头。