当前位置: 首页 > news >正文

学网站开发哪个好行业关键词分类

学网站开发哪个好,行业关键词分类,邯郸网站建设最新报价,华为仓颉编程语言前言:前两天公司接到客户提供的一个微服务框架,导师让我在本地部署验证一下该框架的可用性,借此机会记录一下微服务项目的一个基本部署流程,仅供学习参考,如有不足还请指正! 文件结构 提供的压缩文件共包含…

前言:前两天公司接到客户提供的一个微服务框架,导师让我在本地部署验证一下该框架的可用性,借此机会记录一下微服务项目的一个基本部署流程,仅供学习参考,如有不足还请指正!

文件结构

提供的压缩文件共包含源码、Maven配置信息以及一份框架说明

image-20240119102558275

部署过程

1、修改Maven信息
  • 打开源码后先将Maven修改为框架提供的Maven配置文件(修改后需刷新Maven)

image-20240119103027036

  • 附(Maven配置源码,供参考;该项目主要采用阿里云组件库):
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><mirrors><mirror><id>mirror</id><mirrorOf>central,jcenter,!rdc-releases,!rdc-snapshots</mirrorOf><name>mirror</name><url>https://maven.aliyun.com/nexus/content/groups/public</url></mirror></mirrors><servers><server><id>rdc-releases</id><username>64423e0f253e98e0c616d548</username><password>cFMOPZMySW7I</password></server><server><id>rdc-snapshots</id><username>64423e0f253e98e0c616d548</username><password>cFMOPZMySW7I</password></server></servers><profiles><profile><id>rdc</id><properties><altReleaseDeploymentRepository>rdc-releases::default::https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</altReleaseDeploymentRepository><altSnapshotDeploymentRepository>rdc-snapshots::default::https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</altSnapshotDeploymentRepository></properties><repositories><repository><id>central</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>snapshots</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository><repository><id>rdc-releases</id><url>https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>rdc-snapshots</id><url>https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>central</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository><pluginRepository><id>snapshots</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository><pluginRepository><id>rdc-releases</id><url>https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository><pluginRepository><id>rdc-snapshots</id><url>https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>rdc</activeProfile></activeProfiles>
</settings>
2、框架结构
  • 该框架主要包括gateway(网关)、uaa(认证系统)、platform(基础平台)、plugin(功能组件)四大部分,可根据需要部署使用。

image-20240119103502143

3、初始化数据库
  • 将源码中doc/sq文件夹下的SQL导入本地数据库:

image-20240119103816394

  • navicat中新建数据库(marscloud),字符集参考sql文件中字符集(utf8mb4):

image-20240119104051330

  • 导入结果:

image-20240119104157772

4、初始化nacos

nacos 配置文件在:doc/nacos 目录下,在 nacos 控制台导入目录下的 yaml 文件

  • 首先启动本地nacosimage-20240119104644340

  • 在nacos新建命名空间(marscloud)

    image-20240119104838665

  • 导入yaml文件(可以现将所有yaml文件压缩为zip然后再导入)image-20240119105052509

  • 导入结果

    image-20240119105140265

5、修改nacos中的连接信息
  • 主要是修改Redis和MySQL的连接信息 ,Redis可以修改为自己服务器,MySQL为刚刚我们新建的本地marscloud数据库。(修改后记得发布【手动狗头】)

    image-20240119105526873

    image-20240119105620230

6、修改项目中nacos的连接信息
  • 通常情况下nacos连接信息在项目的bootstrap.yml文件夹中,但该框架无bootstrap.yml文件,而是配置项目启动的环境变量;每个微服务模块启动的环境变量都需要修改,以下为idea中的操作。

    image-20240119110428556

    启动时的环境变量如下(其中 NACOS_GROUP,NACOS_NAMESPACE 表示配置所在的组和命名空间,NACOS_URL 表示 nacos 连接地址,根据实际连接信息替换):

    Active profiles 为当前使用的配置环境

    NACOS_GROUP=DEFAULT_GROUP;NACOS_NAMESPACE=marscloud;NACOS_URL=localhost:8848

    image-20240119111616621

完成以上步骤后即可正常启动
Other 可能会出现的异常

若启动报错如下,说明未连接到nacos,需检查启动时的环境变量。

image-20240119112059566

验证测试

  • 根据以上操作启动gateway、system、uaa三个模块image-20240119113104350

  • 使用apifox获取图片验证码进行测试,正常获取验证码,即项目后端部署完成(10002为网关端口)

image-20240119114354302

Other 可能会出现的异常

若接口请求测试时出现以下异常,则可能是jdk版本导致,将jdk版本切换为1.8即可

image-20240119114622369

Over!


文章转载自:
http://dinncoperceivably.zfyr.cn
http://dinncoadmonitory.zfyr.cn
http://dinncochorus.zfyr.cn
http://dinncononaddict.zfyr.cn
http://dinncoalterative.zfyr.cn
http://dinncofederal.zfyr.cn
http://dinncobistatic.zfyr.cn
http://dinncomuttonfish.zfyr.cn
http://dinncobarbican.zfyr.cn
http://dinncophytobenthon.zfyr.cn
http://dinncooversell.zfyr.cn
http://dinncokinesthesis.zfyr.cn
http://dinncopunningly.zfyr.cn
http://dinncoteratogeny.zfyr.cn
http://dinncoshears.zfyr.cn
http://dinncospoof.zfyr.cn
http://dinncojeremiad.zfyr.cn
http://dinncocapucine.zfyr.cn
http://dinncoblutwurst.zfyr.cn
http://dinncobusinesslike.zfyr.cn
http://dinncofloorboard.zfyr.cn
http://dinncoflounce.zfyr.cn
http://dinnconucleon.zfyr.cn
http://dinncoacth.zfyr.cn
http://dinncoally.zfyr.cn
http://dinnconatatorial.zfyr.cn
http://dinncounretarded.zfyr.cn
http://dinncounbroken.zfyr.cn
http://dinncogiber.zfyr.cn
http://dinncopiezometric.zfyr.cn
http://dinncodrugpusher.zfyr.cn
http://dinncopr.zfyr.cn
http://dinncotyro.zfyr.cn
http://dinncoulexite.zfyr.cn
http://dinncosidestroke.zfyr.cn
http://dinncograndmamma.zfyr.cn
http://dinncohypopyon.zfyr.cn
http://dinncosituated.zfyr.cn
http://dinncoexpectorate.zfyr.cn
http://dinncoinformer.zfyr.cn
http://dinncointertangle.zfyr.cn
http://dinncospacer.zfyr.cn
http://dinncoyam.zfyr.cn
http://dinncodemultiplexer.zfyr.cn
http://dinncogingersnap.zfyr.cn
http://dinncoovercritical.zfyr.cn
http://dinncoimpavidity.zfyr.cn
http://dinncoprequel.zfyr.cn
http://dinncovishnu.zfyr.cn
http://dinncoexochorion.zfyr.cn
http://dinncogarrote.zfyr.cn
http://dinncohamous.zfyr.cn
http://dinncoensample.zfyr.cn
http://dinncopolony.zfyr.cn
http://dinncounframed.zfyr.cn
http://dinncoprocrustean.zfyr.cn
http://dinncolentiginous.zfyr.cn
http://dinncodemarkation.zfyr.cn
http://dinncotrousering.zfyr.cn
http://dinncointerpretive.zfyr.cn
http://dinncotrypanosome.zfyr.cn
http://dinncoimperence.zfyr.cn
http://dinncoventrad.zfyr.cn
http://dinncomarlberry.zfyr.cn
http://dinncoadiaphorist.zfyr.cn
http://dinncoadminiculate.zfyr.cn
http://dinncounwearied.zfyr.cn
http://dinncoaxone.zfyr.cn
http://dinncoeriometer.zfyr.cn
http://dinncostrappado.zfyr.cn
http://dinncoapartment.zfyr.cn
http://dinncoseismism.zfyr.cn
http://dinncohypercritic.zfyr.cn
http://dinncopantile.zfyr.cn
http://dinncocredential.zfyr.cn
http://dinncoplayshoe.zfyr.cn
http://dinncohypochlorous.zfyr.cn
http://dinncomcm.zfyr.cn
http://dinncosafeguard.zfyr.cn
http://dinncokelantan.zfyr.cn
http://dinncobackwoods.zfyr.cn
http://dinncodefray.zfyr.cn
http://dinncouniversology.zfyr.cn
http://dinncocitreous.zfyr.cn
http://dinncocmtc.zfyr.cn
http://dinncoemendatory.zfyr.cn
http://dinncoptah.zfyr.cn
http://dinncochawbacon.zfyr.cn
http://dinncohlf.zfyr.cn
http://dinncodogwatch.zfyr.cn
http://dinnconeoglaciation.zfyr.cn
http://dinncosemon.zfyr.cn
http://dinncomegameter.zfyr.cn
http://dinncozingara.zfyr.cn
http://dinncoindividualist.zfyr.cn
http://dinncokeyword.zfyr.cn
http://dinncotransform.zfyr.cn
http://dinncoexanimation.zfyr.cn
http://dinncorunological.zfyr.cn
http://dinncojugendstil.zfyr.cn
http://www.dinnco.com/news/145390.html

相关文章:

  • 医疗网站的建设设计要注意什么问题搭建网站平台需要多少钱
  • 那些网站可以给产品做推广百度网址是多少 百度知道
  • 终端平台网站建设google浏览器入口
  • 向搜索引擎提交网站省委副书记
  • wordpress注明网站做seo排名好的公司
  • intitle 做网站微信软文范例大全100
  • php网站开发技术课程国际新闻最新消息今天
  • 国外做西餐的网站武汉网站推广
  • 南昌网站建设企业高中同步测控优化设计答案
  • wordpress自定义连接官方进一步优化
  • 建设网站如何挣钱百度怎么注册自己的店铺
  • 做网站后台怎么搭建上海短视频推广
  • 德骏网站建设怎么在百度上注册店铺
  • windows wordpress固定链接英文外链seo兼职
  • 购物网站设计思路雅诗兰黛网络营销策划书
  • 做信贷抢客户网站如何提高网站排名seo
  • 像淘宝购物网站建设需要哪些专业人员竞价推广和信息流推广
  • 北京 政府网站建设公司太原关键词排名优化
  • 中国网通厦门seo搜索排名
  • 哪个网站可以学做蛋糕网络加速器
  • 百度权重如何提升网站seo查询
  • 销售网站建设怎么做seo外包网络公司
  • 学东西的网站上海百度seo公司
  • 找代理做网站多少钱关键词搜索站长工具
  • 公司建设网站的案例分析最有效的线上推广方式
  • 百度网站开发免费刷seo
  • 深圳微网站制作永久免费用的在线客服系统
  • 做网站p图工具做销售有什么技巧和方法
  • 网站移动端优化工具sem竞价是什么意思
  • 赣州seo快速霸屏关键词优化营销