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

新闻聚合网站开发 技术百度关键词刷搜索量

新闻聚合网站开发 技术,百度关键词刷搜索量,潍坊网站建设服务商,ps怎么网站首页本文介绍从gitee下载nacos源码,在本地编译,并导入idea进行本地调试。 从gitee下载源码 由于github访问速度慢,所以我选择使用gitee的镜像仓库: git clone https://gitee.com/mirrors/Nacos.git本文使用2.0.2版本,所…

本文介绍从gitee下载nacos源码,在本地编译,并导入idea进行本地调试。

从gitee下载源码

由于github访问速度慢,所以我选择使用gitee的镜像仓库:

git clone https://gitee.com/mirrors/Nacos.git

本文使用2.0.2版本,所以需要切换到2.0.2分支:

cd Nacos
git checkout 2.0.2

创建一个自己的分支,用于保存笔记和代码注释:

git checkout -b my-2.0.2

本地编译

mvn -Dmaven.test.skip=true -Drat.skip=true clean install

构建发布包

mvn -Prelease-nacos -Dmaven.test.skip=true -Drat.skip=true clean install -U

这种构建方式会在distribution/target目录下生成nacos-server-2.0.2.zip包,从官网下载的就是这样的包。

但是会抛错:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.1.0:repackage (default) on project nacos-console: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.1.0:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.1.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

将工程使用的spring-boot-maven-plugin版本改成2.3.8.RELEASE版本即可:

<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.3.8.RELEASE</version>
</plugin>

idea开发环境

导入到idea

File -> Open导入即可。

启动console

找到console/src/main/java/com/alibaba/nacos/console/config/ConsoleConfig.java文件,修改PropertySource注解值:

// @PropertySource("/application.properties")
@PropertySource("classpath:application.properties")
public class ConsoleConfig {

/application.properties改为classpath:application.properties。

需要添加一些环境变量和参数:

  • -Dnacos.standalone=true
  • –logging.config=classpath:nacos-logback.xml

如果需要自定义日志就使用–logging.config指定配置文件路径。

访问console

http://localhost:8848/nacos

用户名:nacos

密码:nacos

http://www.gaoduandz.com/news/184.html

相关文章:

  • 网站营售宁德市是哪个省
  • 阿里云上做网站套模板怎么做网站推广公司黄页
  • 如何建设一个苹果网站百度帐号登录个人中心
  • 网站服务器租一个月万网域名查询注册商
  • 小公司没网站seo博客模板
  • 买了域名就可以做网站荥阳seo推广
  • 珠江网站建设seo免费诊断联系方式
  • 网站推广教程分享免费网站建设seo
  • 公司注册资金一览表seo牛人
  • 晋江网友交流区网站免费seo工具
  • 做餐饮加盟的网站网站搭建公司
  • app投放渠道有哪些免费关键词优化工具
  • 网站建设特点怎么建免费网站
  • 自己网站怎么做优化互联网营销师教材
  • 深圳华强北做网站最新军事新闻
  • 平面设计专业网站百度官网推广
  • 外贸品牌网站设计娄底地seo
  • 沈阳网站建设哪家便宜哪个合肥seo好
  • 电子商务网站建设的一般流程写文案接单平台
  • 推荐几个靠谱的网站2022网页分析报告案例
  • 手机优化网站建设alexa排名
  • 旅游投资公司网站建设如何在互联网上做推广
  • 珠海哪个公司建设网站好怎么创建网站快捷方式到桌面
  • 做幼儿网站的目标交易平台
  • 校园网站建设系统设计如何制作简单的网页链接
  • 大型购物网站排名嘉兴关键词优化报价
  • 网站建设平台策划百家号权重查询站长工具
  • 双辽做网站个人推广平台
  • 网站建设中 页面seo优化价格
  • 商丘建网站郑州seo代理公司