上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: 优先级按排序 1 过滤器(Filter) 最先进入拦截,只能获取到response,request 2 拦截器(Interceptor) 可以获取到执行的类名,方法名 3 切片(Aspect) 可以获取到参数 具体使用哪一个看业务需求吧. 1 过滤器(Filter) 自定义Filter packag 阅读全文
posted @ 2020-11-28 18:56 qukaige 阅读(705) 评论(0) 推荐(0)
摘要: 在resources 目录下 创建 resources/error 即可,浏览器访问会跳转至定义的页面中 ajax请求自定义异常处理 消息 UserNotExistException .java package com.imooc.exception; public class UserNotExi 阅读全文
posted @ 2020-11-27 21:42 qukaige 阅读(2215) 评论(0) 推荐(0)
摘要: MVC 开发RESTfulAPI 接口 传统模式: 传统的查询,修改,删除都是GET或者POST 参数以queryString 方式 a=1&b=2 等.. RESTfulAPI中: 用URL描述资源 用HTTP方法描述行为(GET查询详情/POST创建/PUT修改/DELETE删除),使用HTTP 阅读全文
posted @ 2020-11-27 17:54 qukaige 阅读(125) 评论(0) 推荐(0)
摘要: Maven 项目创建父工程 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt 阅读全文
posted @ 2020-11-27 12:17 qukaige 阅读(101) 评论(0) 推荐(0)
摘要: location / { deny xx.x6.x3.x2; # 限制某个ip allow all; # 允许所有ip访问 } 阅读全文
posted @ 2020-07-13 08:57 qukaige 阅读(345) 评论(0) 推荐(0)
摘要: 在nginx配置中增加 location / { # include uwsgi_params; # uwsgi_pass unix:/home/web/zsh/app_uwsgi.sock; proxy_set_header Host $http_host; proxy_set_header X- 阅读全文
posted @ 2020-06-19 09:42 qukaige 阅读(730) 评论(1) 推荐(0)
摘要: yum install epel-release yum install nginx 阅读全文
posted @ 2020-03-27 11:10 qukaige 阅读(67) 评论(0) 推荐(0)
摘要: -rw-r--r-- 文件类型(-文件 d目录 l软链接) rw- r-- r-- u所有者 g所属组 o其他人 r读w写x执行 组 kb 最后一次修改时间 -rw-r--r--. 1 root root 18 Dec 28 2013 .bash_logout -rw-r--r--. 1 root 阅读全文
posted @ 2020-03-27 10:52 qukaige 阅读(184) 评论(0) 推荐(0)
摘要: 追踪方法: SpringCloud-sleuth + zipkin zipkin docker 安装 docker run -d -p 9411:9411 openzipkin/zipkin 官网 https://zipkin.io 启动后就是这样子 10.10.10.103:9411 接入项目 2 阅读全文
posted @ 2019-12-19 15:09 qukaige 阅读(169) 评论(0) 推荐(0)
摘要: 第一步: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-client</artifactId> </dependency> 第二步: @EnableCircuitBr 阅读全文
posted @ 2019-12-19 11:56 qukaige 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页