
问题
天道剑邪
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql 数据类型 (最大值 和 最小值)
https://blog.youkuaiyun.com/joyous/article/details/80153556https://blog.youkuaiyun.com/zh521zh/article/details/51190365Integer Types (Exact Value 精确值) - INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINTMyS...原创 2019-01-30 15:36:27 · 1610 阅读 · 0 评论 -
spring boot 用Debug模式 启动到一半卡住了 也不报错
用run方式可以启动,部署到服务器上也可以启动,只有debug模式不可以启动最后尝试删除掉所有设置的断点,结果启动成功!悲剧的是上一次,我把整个项目删了,从新git了一下,才好...原创 2019-09-03 19:45:24 · 5479 阅读 · 5 评论 -
debug断点调试中,查看request中的parameter值
request中的parameter的值在debug查看,一直是一件头疼的事情,很多时候宁愿去System.out.println出值,也不愿去一层层的查找今天,本着困难就要被攻克的精神,整理下查找parameter的过程。一般需要打开request的7-9层才可以找到,(下图已经标上序号)打开第7层找到pathParameter,打开第9层找到parameter的值request-&...原创 2019-08-27 17:22:35 · 7945 阅读 · 2 评论 -
Git-warning: CRLF will be replaced by LF in XXX .
转载:https://blog.youkuaiyun.com/qq_32452623/article/details/77149819前言今天,普通平凡的一天,平凡的使用 git add .,然后又出现一个之前没遇到的错误提示 。 真开心,手下败将又可以多一个了。以下是错误提示:warning: CRLF will be replaced by LF in XXX . The file wi...转载 2019-05-23 20:43:09 · 274 阅读 · 0 评论 -
ps -ef和ps aux
1、ps aux 是用BSD的格式来显示显示顺序:USER,PID, %CPU , %MEM , VSZ ,RSS,TTY,STAT,START,TIME,COMMAND例如:ps aux|grep redisroot 1888 0.0 0.0 2474644 260 ?? Ss 一03下午 0:28.46 ./bin/redis...原创 2019-04-24 11:13:40 · 289 阅读 · 0 评论 -
Base64升级 去掉特殊字符 / % +
1、起因:用的 为java.util.Base64 ,Base64.getEncoder().encodeToString("加密byte字节");如果加密结果用在url中,由于特殊字符/ ,%的出现,会打乱现有的url请求2、解决:为此,需要用方法 getUrlEncoder,来过滤掉这些特殊字符Base64.getUrlEncoder().encodeToString("...原创 2019-04-01 11:25:09 · 12215 阅读 · 0 评论 -
MetaObjectHandler insertFill未自动插入或者更新公共字段
解决办法,1、在实体类的公共字段上添加注解@TableField(strategy = FieldStrategy.IGNORED)2、在公共字段上添加注解@TableField(value = "create_date", fill = FieldFill.INSERT)或者@TableField(value = "create_date", fill = FieldFill.I...原创 2019-03-08 15:48:55 · 16227 阅读 · 6 评论 -
restful,get请求可以进入cotroller和返回,客户端 出现400的错误,而且接口段也能接收到json数据
报的错误如下:Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "{"success":true,"error_code":"00000","error_...原创 2019-03-02 13:41:46 · 692 阅读 · 0 评论 -
expected at least 1 bean which qualifies as autowire candidate for this dependency.
cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentPermissionController': Unsatisfied dependency expressed through field ...原创 2019-02-14 14:33:38 · 2123 阅读 · 0 评论 -
mysql大于等于、小于等于的写法
mysql大于等于>=、小于等于<=、>、<的写法大于等于 <![CDATA[ >= ]]>小于等于 <![CDATA[ <= ]]>大于 <![CDATA[ >]]>小于<![CDATA[ < ]]>或者用替换符号进行替换原符号 < <...原创 2019-02-14 10:26:10 · 34654 阅读 · 0 评论 -
HttpServletRequest获取URL的方法
示例:当前url:http://localhost:8080/test/test.jsp ?name=xxx1、request.getRequestURL() 返回的是完整的url,包括Http协议,端口号,servlet名字和映射路径,但它不包含请求参数。返回:http://localhost:8080/test/test.jsp2、request.getRequestUR...原创 2019-02-16 11:29:59 · 10105 阅读 · 0 评论 -
ajax访问后台报404,spring mvc框架
在controller中打断点,可以访问,返回的数据也正常。解决办法:找了很久也没发现问题,后来发现未加@RestController注解;又尝试加上@ResponseBody注解,去掉@RestController也可以解决问题;特此记录以纪念这个低级的,但不好找的错误...原创 2019-02-15 14:22:46 · 511 阅读 · 0 评论 -
restful访问出现This application has no explicit mapping for /error, so you are seeing this as a fallback
项目中访问测试restful,http://localhost:8080/nes4/test出现如下错误Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.如图解决:发现是springboot 注解未将cont...原创 2019-01-28 10:45:22 · 12151 阅读 · 1 评论 -
为什么spring boot项目在maven pom.xml中部分依赖没有版本号?或者不用在<properties>中设定值?
1、为什么spring boot项目在maven pom.xml中部分依赖没有版本号?或者不用在<properties>中设定值?而项目却不会报错。现象如图:或者即使写了版本号,却不用在在<properties>中设定值?2、解释:ctrl+鼠标左键点击上图中的版本号,则会进入springboot 的 spring-boot-dependencies...原创 2019-01-19 16:43:00 · 14043 阅读 · 0 评论 -
swagger配置spring boot出现 Unable to infer base url
今天突发奇想,想用@ComponentScan 代替@MapperScan扫描dao试一下,import org.mybatis.spring.annotation.MapperScan;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.Spri...原创 2019-01-19 13:17:11 · 1067 阅读 · 0 评论 -
遇到 cannot resolve bean 'serivce'
遇到问题如下所示解决办法:在该service对应的impl的实现类上添加注解@service("agentUserService")原创 2019-01-24 10:15:30 · 7182 阅读 · 1 评论 -
spring boot 加载出现 Loading class `com.mysql.jdbc.Driver'. This is deprecated.
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class...原创 2019-01-18 17:00:16 · 7635 阅读 · 1 评论