- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 有赞电话面试
今天还在地铁上的时候接到有赞的电话面试首先让我来个自我介绍,然后说说项目,接下来1.在项目中遇到的问题2.redis中过期的数据处理策略?redis中单线程的优势?说说看redis中io的模型?3.mysql的索引为什么用b+树,为什么不用二叉平衡树?最左匹配原则?4.hashmap的数据结构?hash冲突的时候是插入头节点还是尾节点?使用红黑树的效率5.spring ao...
2019-02-21 21:23:57
1074
转载 线上出故障了!我慌得一匹!教大家如何应对在线故障!
本文作者:飒然Hang原文地址:http://www.rowkey.me/blog/2018/11/22/online-debug线上运行的Java应用突然没有响应、响应缓慢,进程突然消失,遇到这些情况应该如何应对呢?今天教大家如何应对在线故障!...
2019-02-11 15:14:58
318
原创 centos7下yum安装mysql
[root@VM_227_15_centos opt]# wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm [root@VM_227_15_centos opt]# rpm -ivh mysql57-community-release-el7-8.noarch.rpm [root@VM...
2019-01-18 14:02:27
185
原创 Git常用命令
一:创建版本库$ git clone <url> #克隆远程版本库$ git init #初始化本地版本库二:修改和提交$ git status #查看状态$ git diff #查看变更内容三:查看提交历史 四:撤销 五:分支与标签 六:合并 七:远程操作...
2019-01-14 11:21:17
123
原创 spring @Autowired注入静态变量
一、业务场景spring框架应用中有些静态方法需要依赖被容器管理的类@Componentpublic class XmlSignUtil { @Autowired private static MybankConstant mybankConstant; ....}直接这样会报空指针异常二、解决办法@Componentpublic class ...
2019-01-11 10:00:19
1384
1
原创 springboot运行时候出现Process finished with exit code 1错误
Connected to the target VM, address: '127.0.0.1:49944', transport: 'socket' . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \...
2018-09-29 18:29:11
10859
2
原创 springboot出现 java.lang.IllegalArgumentException: No converter found for return value of type
直接加上<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.9.6</version></dependency>
2018-09-26 10:49:58
690
原创 springcloud feign 404问题
一.使用feign 时候出现了404问题:feign.FeignException: status 404 reading UserClientService#getById(Integer); content:{"timestamp":1537840235636,"status":404,"error":"Not Found","message":"No message availabl.
2018-09-25 10:01:26
4428
1
原创 java中常见的坑
1.对于Integer var=?在-128至127之间的赋值,Integer对象是在IntegerCache.cache产生,会复用已有对象,这个区间内的Integer 值可以直接使用==进行判断,但是这个区间之外的所有数据,都会在堆上产生,并不会复用已有对象,这是一个大坑,推荐使用 equals方法进行判断。2.有try块放到了事务代码中,catch异常后,如果需要回滚事务,一定要注意手动...
2018-08-14 17:26:14
290
原创 Swagger注解说明
1. @Api用在类上,说明该类的作用@Api(value = "UserController", description = "用户相关api")2. @ApiOperation用在方法上,说明方法的作用@ApiOperation(value = "查找用户", notes = "查找用户", httpMethod = "GET", produces = MediaType....
2018-08-07 10:07:50
237
原创 spring mvc 应用中用path variable传递小数丢失的解决方法
@AuthPassport @RequestMapping("/OMS315/appr/{qid}/{pid}/{status}/{sn}/{price}") public @ResponseBody String apprBuy(HttpServletRequest request, HttpServletResponse response, @P...
2018-08-07 10:00:57
604
原创 阿里云上安装ELK
ELK部署文档一:简单介绍:ELK是三个开源工具组成,Elasticsearch、Logstash、Kibana ,这三者的关系按照下图所示Elasticsearch是个开源分布式搜索引擎,它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格接口,多数据源,自动搜索负载等。...
2018-08-03 17:16:45
1416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人