02 2021 档案

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