- 博客(5)
- 收藏
- 关注
原创 ihrm学习笔记
一、Controller 无法访问 type=Not Found, status=404原因:在想要引入另一个工程的类时,在主启动类上加了注解,包名自作聪明写的十分具体,导致扫描的是注解中的包。package com.ihrm.company;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org
2020-12-13 21:27:46
916
原创 自定义jackson反序列null和空字符串的默认值
将json反序列化,但是不希望对象的属性中有null或者空字符串,那么就可以采用以下方案。首先是实体类package com.example.demo.dto;import com.example.demo.config.StringDeserializer;import com.fasterxml.jackson.annotation.JsonProperty;import com.fasterxml.jackson.databind.annotation.JsonDeserialize;i
2020-11-09 00:05:57
4576
2
原创 nginx报错找不到指定路径
已经启动nginx的情况下,修改nginx.conf文件后,直接点击nginx.exe启动,访问不到新添加的路由。查看error.log,显示The system cannot find the path specified,也就是找不到指定路径。这样的原因一般有两个,第一个肯定就是nginx.conf中的路由配错,需要仔细检查配置文件。第二个就是nginx.exe有多个,需要关闭后重启。关闭所有nginx.exe进程:taskkill /f /t /im nginx.exe启动nginx.exe
2020-05-30 22:04:21
6919
原创 使用fastDFS连接trackerServer连接超时
最近在学fastDFS,用FileZilla上传文件,用secureCRT连接并操作,搭建好服务器并配置之后,测试文件上传.报连接超时异常connect to server 192.168.62.135:22122 failconnect to server 192.168.62.135:22122 failjava.net.ConnectException: Connection time...
2020-02-03 22:52:36
2310
原创 安装RabbitMQ之后无法访问localhost:15672
安装RabbitMQ之后无法访问localhost:15672第一次安装RabiitMQ,参考安装教程,然后访问localhost:15672,但是访问不了。所以在D:\IDE\rabbitMQ\rabbitmq_server-3.7.3\sbin的cmd下执行 rabbitmq-plugins enable rabbitmq_management,依然访问不了。百度后,同样的cmd下执行r...
2019-12-29 20:33:22
508
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人