02 2021 档案
摘要:登录页面存入localStorage login(){ let _this=this console.log("qq:"+_this.loginForm.username) _this.$http.post('query',_this.loginForm).then(function(respons
阅读全文
摘要:WebSocker是一个保持web客户端与服务器长链接的技术。这样在两者通信过程中如果服务器有消息发送给客户端,就无需等待web客户端发送一个请求了(HTTP协议是请求相应式,如果没有Web客户端的请求,服务器是无法对客户端做相应的)。 单独的部署一个WebSocket服务器很简单,只需要几个注解即
阅读全文
摘要:消费端pom.xml <!--消费者 实体类+web--> <dependencies> <dependency> <groupId>org.example</groupId> <artifactId>springcloudapi</artifactId> <version>1.0-SNAPSHOT
阅读全文
摘要:提供端依赖pom.xml <!-- 加入eureka依赖--> <!-- 我们需要拿到实体类--> <dependencies> <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starte
阅读全文
摘要:eureka依赖 <dependencies> <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-eureka-server --> <dependency> <groupId
阅读全文
摘要:vue.js推荐使用axios <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>请求</title> <style> [v-clock] { display: none; } </style> </head>
阅读全文
摘要:组件可以自定义 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>组件</title> </head> <body> <div id="app"> <i-jun v-for="item in items" v-
阅读全文
摘要:v-for遍历数据 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <!-- 遍历--> <li v-for="(ite
阅读全文
摘要:vue指令表单输入控件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> 输入的文本<input type="text"
阅读全文
摘要:vue监听事件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!--事件处理--> <div id="app"> <button v-on:cli
阅读全文
摘要:vue基础知识 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <h1 v-if="type == 'A'">A</h1
阅读全文
摘要:vue基础应用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <span v-bind:title="message"
阅读全文
摘要:1、Spring Cloud是基于Spring Boot的一整套实现微服务的框架。它提供了微服务开发所需的配置管理、服务发现、断路器、智能路由、微代理、控制总线、全局锁、决策竞选、分布式会话和集群状态管理等组件。 简单来说就是完善springboot在生产环境中能够供大多数中小公司使用。 2、spr
阅读全文
摘要:可能是SpringBoot的版本高于SpringCloud支持的版本,方法:降低springboot版本即可。
阅读全文
摘要:springcloud依赖 <!-- 版本号--> <properties> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <junit.versio
阅读全文

浙公网安备 33010602011771号