做网站上找王思奇,企业加强网站建设的必要性,浙江十大外贸公司,杭州网站建设价格1.注册华为云账号获取个人中心-》管理我的凭证-》访问密钥-》下载ak#xff0c;sk密钥。
2.本地项目maven需要配置华为云私服 profile idnexusProfile/id repositories repository idcse1/idurlhttp://mave…1.注册华为云账号获取个人中心-》管理我的凭证-》访问密钥-》下载aksk密钥。
2.本地项目maven需要配置华为云私服 profile idnexusProfile/id repositories repository idcse1/idurlhttp://maven.huaweicse.com/nexus/content/groups/public//url /repository /repositories /profile/profilesactiveProfiles activeProfilenexusProfile/activeProfile
/activeProfiles
3.父工程和子工程的Pom文件jar包处理 dependencies!-- 取消cloud的配置引用ces配置 --!--dependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-dependencies/artifactIdversionDalston.SR5/versiontypepom/typescopeimport/scope/dependency--dependencygroupIdcom.huawei.paas.cse/groupIdartifactIdcse-dependency/artifactIdversion${cse.version}/versiontypepom/typescopeimport/scope/dependency
子工程 dependencygroupIdcom.huawei.paas.cse/groupIdartifactIdcse-solution-service-engine/artifactIdexclusionsexclusiongroupIdorg.slf4j/groupIdartifactIdslf4j-log4j12/artifactId/exclusion/exclusions/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter/artifactId/dependencydependencygroupIdorg.apache.servicecomb/groupIdartifactIdspring-boot-starter-provider/artifactId/dependency
4.microservice.yaml配置文件处理 5.注解及代码注意事项
1.因为serviceComb已经提供swagger的所以本地代码无需配置 2.注释restController 和 controller上必须显示声明requestmapping 3.如果是Get查询请求需要请求参数使用基本类型对象
4.启动类无需使用本地fegin和加上serviceComb启动注解