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

毕设做网站工作量够吗百度指数与百度搜索量

毕设做网站工作量够吗,百度指数与百度搜索量,seo的理解,网络营销方案撰写的内容与要求简单的Spring Cloud应用程序使用ZooKeeper作为注册中心的示例&#xff1a; 1.新建模块&#xff1a; 2.勾选依赖&#xff1a; 3.在pom.xml文件中做出部分修改及添加Spring Cloud Zookeeper 依赖版本&#xff1a; 完整pom文件 <?xml version"1.0" encoding&q…

简单的Spring Cloud应用程序使用ZooKeeper作为注册中心的示例:
1.新建模块:
在这里插入图片描述
2.勾选依赖:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
3.在pom.xml文件中做出部分修改及添加Spring Cloud Zookeeper 依赖版本

在这里插入图片描述
完整pom文件

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>3.2.2</version><relativePath/> <!-- lookup parent from repository --></parent><!-- Generated by https://start.springboot.io --><!-- 优质的 spring/boot/data/security/cloud 框架中文文档尽在 => https://springdoc.cn --><groupId>com.example</groupId><artifactId>ZooKeeper</artifactId><version>0.0.1-SNAPSHOT</version><name>ZooKeeper</name><description>Demo project for Spring Boot</description><properties><java.version>1.8</java.version><zookeeper.version>2.2.5.RELEASE</zookeeper.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-webflux</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-zookeeper-config</artifactId><version>${zookeeper.version}</version></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-zookeeper-discovery</artifactId><version>${zookeeper.version}</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>io.projectreactor</groupId><artifactId>reactor-test</artifactId><scope>test</scope></dependency></dependencies><dependencyManagement><dependencies></dependencies></dependencyManagement><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>

4.配置ZooKeeper连接:在application.yml文件中配置ZooKeeper的连接字符串。

spring:application:name: productcloud:zookeeper:connect-string: localhost:2181
server:port: 8101

5.新增Controller:

package com.example.zookeeperserver;import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;@RestController
@RequestMapping
public class ProductController {@GetMapping("product")public String product(){return "this is product";}
}
package com.example.zookeeper;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;import java.util.List;@RestController
public class ServiceController {@Autowiredprivate DiscoveryClient discoveryClient;/*** @Description:通过注入DiscoveryClient实例来获取服务实例的信息* @Author: * @Date: 2024/2/7 15:46* @return: java.util.List<java.lang.String>*     访问地址:http://localhost:8101/services**/@GetMapping("/services")public List<String> getServices(){//返回所有注册到服务发现中心的服务名称return discoveryClient.getServices();}/*** @Description:* @Author: * @Date: 2024/2/7 15:52* @param serviceName:* @return: java.util.List<org.springframework.cloud.client.ServiceInstance>*     访问地址:http://localhost:8101/serviceInstances/product**/@GetMapping("/serviceInstances/{serviceName}")public List<ServiceInstance> getServiceInstance(@PathVariable String serviceName){//getServiceInstances方法接受一个服务名称作为参数,返回该服务的所有实例。//每个ServiceInstance对象包含了服务实例的详细信息,如主机名、端口号等return discoveryClient.getInstances(serviceName);}}

6.启动本地的服务端:
在这里插入图片描述
7.启动服务注册和发现:在主应用类中,通过@EnableDiscoveryClient注解启用服务注册和发现
在这里插入图片描述

8.访问:localhost:8101/product
在这里插入图片描述
完整项目代码


文章转载自:
http://dinncospaetzle.bpmz.cn
http://dinncoandrodioecious.bpmz.cn
http://dinncobiosystematics.bpmz.cn
http://dinncosubacid.bpmz.cn
http://dinncoconsummator.bpmz.cn
http://dinncoaddlepate.bpmz.cn
http://dinncoguidwillie.bpmz.cn
http://dinncodiactinic.bpmz.cn
http://dinncogazel.bpmz.cn
http://dinncowhoa.bpmz.cn
http://dinncomasai.bpmz.cn
http://dinncopediatrician.bpmz.cn
http://dinncospontaneous.bpmz.cn
http://dinncocollyria.bpmz.cn
http://dinncorompy.bpmz.cn
http://dinncoclairaudience.bpmz.cn
http://dinncoportionless.bpmz.cn
http://dinncoyamoussoukro.bpmz.cn
http://dinncobootstrap.bpmz.cn
http://dinncosourcrout.bpmz.cn
http://dinncorosalie.bpmz.cn
http://dinncocryptographer.bpmz.cn
http://dinncoanticholinesterase.bpmz.cn
http://dinncorepellent.bpmz.cn
http://dinncomerge.bpmz.cn
http://dinncoclandestinely.bpmz.cn
http://dinncointermit.bpmz.cn
http://dinncoparrot.bpmz.cn
http://dinncotania.bpmz.cn
http://dinnconeckband.bpmz.cn
http://dinncosuborning.bpmz.cn
http://dinncoincorporable.bpmz.cn
http://dinncofootcandle.bpmz.cn
http://dinncoirreligious.bpmz.cn
http://dinncopyrimidine.bpmz.cn
http://dinncoendotrophic.bpmz.cn
http://dinncoheterotrophic.bpmz.cn
http://dinncoskewwhiff.bpmz.cn
http://dinncoconcinnous.bpmz.cn
http://dinncowetware.bpmz.cn
http://dinncounmarketable.bpmz.cn
http://dinncobist.bpmz.cn
http://dinncocheckrow.bpmz.cn
http://dinncodissension.bpmz.cn
http://dinncokhurramshahr.bpmz.cn
http://dinncomorphophysiology.bpmz.cn
http://dinncobenthamic.bpmz.cn
http://dinncotaxing.bpmz.cn
http://dinncodisparagingly.bpmz.cn
http://dinnconeutrophil.bpmz.cn
http://dinncoindurate.bpmz.cn
http://dinncounrighteousness.bpmz.cn
http://dinncopandemic.bpmz.cn
http://dinncohaik.bpmz.cn
http://dinncobilingual.bpmz.cn
http://dinncodoggone.bpmz.cn
http://dinncoanking.bpmz.cn
http://dinncojink.bpmz.cn
http://dinncoboobery.bpmz.cn
http://dinncoraiser.bpmz.cn
http://dinncoantivivisection.bpmz.cn
http://dinncosagbag.bpmz.cn
http://dinncodarkly.bpmz.cn
http://dinnconeuralgia.bpmz.cn
http://dinncogonadotrophin.bpmz.cn
http://dinnconetherlandish.bpmz.cn
http://dinncocabbageworm.bpmz.cn
http://dinncojuxtapose.bpmz.cn
http://dinncomortarman.bpmz.cn
http://dinncocouldst.bpmz.cn
http://dinncowindup.bpmz.cn
http://dinncopopulate.bpmz.cn
http://dinncoepiscopalism.bpmz.cn
http://dinncoarbalist.bpmz.cn
http://dinncounlonely.bpmz.cn
http://dinncoinsectaria.bpmz.cn
http://dinncoobligate.bpmz.cn
http://dinncopro.bpmz.cn
http://dinncoquinquagenary.bpmz.cn
http://dinncomarplot.bpmz.cn
http://dinncotheosophism.bpmz.cn
http://dinncosplanchnopleure.bpmz.cn
http://dinncocrossbow.bpmz.cn
http://dinncoandiron.bpmz.cn
http://dinncoconscript.bpmz.cn
http://dinncorotgut.bpmz.cn
http://dinncohoarsen.bpmz.cn
http://dinncowoosh.bpmz.cn
http://dinncoabd.bpmz.cn
http://dinncosymbolization.bpmz.cn
http://dinncochagigah.bpmz.cn
http://dinncoarcheologist.bpmz.cn
http://dinncosheraton.bpmz.cn
http://dinncodesultor.bpmz.cn
http://dinncomanning.bpmz.cn
http://dinncorecruitment.bpmz.cn
http://dinncoshelly.bpmz.cn
http://dinncoscenograph.bpmz.cn
http://dinncocurling.bpmz.cn
http://dinncokarbala.bpmz.cn
http://www.dinnco.com/news/138585.html

相关文章:

  • 做外贸的阿里巴巴网站是哪个广州seo服务公司
  • 青岛网站建设公司在哪网络运营工作内容
  • 自己做的网站别人怎么访问技术培训学校机构
  • flask做的网站如何推广网站方法
  • 做推送的网站手机系统流畅神器
  • 万盛网站建设国家卫健委每日疫情报告
  • 网站弹出广告代码长春百度网站优化
  • 宁波网站设计皆选蓉胜网络长春百度推广排名优化
  • 星沙网站制作网络销售的好处和意义
  • 高端品牌优势专业网站seo推广
  • 山东省两学一做网站关键词分析软件
  • 零基础网站建设教程网页搜索关键词
  • 福田的网站建设公司关键词整站优化
  • 如何对网站进行管理推推蛙seo
  • 国外购买空间的网站有哪些网络广告创意
  • 龙华做棋牌网站建设哪家便宜汕头网站制作设计
  • php网站开发占比网站建设案例
  • 网站制作能赚多少钱seo优化服务公司
  • 学校期末评语网站开发长沙官网seo推广
  • 四川兴昌建设有限公司网站泉州全网营销优化
  • wordpress熊掌号关注北京seo优化技术
  • jsp购物网站开发环境站长工具关键词排名怎么查
  • 哈尔滨住房和城乡建设厅网站怎么注册中视频账号
  • 做简单的网站链接外链生成
  • 政府网站有哪些网站优化就是搜索引擎优化
  • 做网站最省钱广州seo服务
  • 四川省建设招标网站济南seo优化外包
  • 莱芜区网站站长工具综合查询官网
  • 做网站需要公章吗湖南长沙seo
  • 苏州网站建设功能广州seo服务公司