勿以浮沙筑高台
左上角Seetings,输入Template,找到File and Code Templates,配置模板
File | Settings | Editor | File and Code Templates
<?xml version&#61;"1.0" encoding&#61;"UTF-8"?>
<beans xmlns&#61;"http://www.springframework.org/schema/beans"xmlns:xsi&#61;"http://www.w3.org/2001/XMLSchema-instance"xmlns:dubbo&#61;"http://code.alibabatech.com/schema/dubbo"xsi:schemaLocation&#61;"http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://code.alibabatech.com/schema/dubbohttp://code.alibabatech.com/schema/dubbo/dubbo.xsd"><!--当前项目在整个分布式架构里面的唯一名称&#xff0c;计算依赖关系的标签--><dubbo:application name&#61;"provider" owner&#61;"fuchasheng" logger&#61;"log4j"><!--运维使用qos--><dubbo:parameter key&#61;"qos.enable" value&#61;"true"/><dubbo:parameter key&#61;"qos.accept.foreign.ip" value&#61;"false"/><dubbo:parameter key&#61;"qos.port" value&#61;"55555"/></dubbo:application><dubbo:monitor protocol&#61;"registry"/><!--dubbo这个服务所要暴露的服务地址所对应的注册中心--><!--<dubbo:registry address&#61;"N/A"/>--><!--N/A代码没有注册中心--><dubbo:registry address&#61;"N/A"/><!--当前服务发布所依赖的协议&#xff1b;dubbo&#xff0c;webservice、Thrift、Hession、http--><dubbo:protocol name&#61;"dubbo" port&#61;"20880"/><!--服务发布的配置&#xff0c;需要暴露的服务接口--><dubbo:serviceinterface&#61;"dubbo.service.api.ServiceProvide"ref&#61;"providerService"/><!--Bean bean定义 暴露的服务接口对应实现类--><bean id&#61;"providerService" class&#61;"dubbo.service.impl.ServiceProvideImpl"/>
</beans>