上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 1 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 2 在与启动类同包下创建配置类 @C 阅读全文
posted @ 2019-11-01 15:43 9529 阅读(322) 评论(0) 推荐(0)
摘要: 登录 function login(){ var username=$('#username').val(); var password=$('#password').val(); $.ajax({ type: "post", url: "/login", data :JSON.stringify( 阅读全文
posted @ 2019-10-28 13:26 9529 阅读(157) 评论(0) 推荐(0)
摘要: import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class RedisPoolUtils { priv 阅读全文
posted @ 2019-10-20 19:48 9529 阅读(86) 评论(0) 推荐(0)
摘要: pom.xml添加依赖 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.4.2</version> </dependency> linux设置密码,指令为: config 阅读全文
posted @ 2019-10-20 19:29 9529 阅读(90) 评论(0) 推荐(0)
摘要: CentOS 6.5开放端口方法 lsof -i tcp:80 #列出所有端口 netstat -ntlp 1、开启端口(以80端口为例) 方法一: /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 写入修改 /etc/init.d/iptabl 阅读全文
posted @ 2019-10-20 19:07 9529 阅读(269) 评论(0) 推荐(0)
摘要: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver ( 阅读全文
posted @ 2019-10-16 12:39 9529 阅读(68) 评论(0) 推荐(0)
摘要: 参考文章https://www.cnblogs.com/cnlg123/p/7762889.html 阅读全文
posted @ 2019-10-15 20:42 9529 阅读(71) 评论(0) 推荐(0)
摘要: 基本原理 上图是来自eureka的官方架构图,这是基于集群配置的eureka; - 处于不同节点的eureka通过Replicate进行数据同步 - Application Service为服务提供者 - Application Client为服务消费者 - Make Remote Call完成一次 阅读全文
posted @ 2019-10-12 23:09 9529 阅读(69) 评论(0) 推荐(0)
摘要: eureka: client: #客户端注册进eureka服务列表内 service-url: defaultZone: http://localhost:7001/eureka 阅读全文
posted @ 2019-10-12 20:41 9529 阅读(101) 评论(0) 推荐(0)
摘要: server: port: 3000 #端口 eureka: instance: hostname: localhost #eureka服务端的实例名称 client: register-with-eureka: false #false表示不向注册中心注册自己。 fetch-registry: f 阅读全文
posted @ 2019-10-12 20:39 9529 阅读(767) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页