代码改变世界

generatorConfig.xml自动生成实体类,dao和xml

2019-10-11 09:14 by hikoukay, 536 阅读, 0 推荐, 收藏, 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://my 阅读全文

service继承baseService后无法注入dao的解决办法

2019-09-26 10:46 by hikoukay, 863 阅读, 0 推荐, 收藏, 编辑
摘要:1.在set方法上加@Autowired 2.在set方法上加@Resource 这样子就可以拿到dao了 阅读全文

为微服务项目设置统一访问路径

2019-09-25 15:03 by hikoukay, 1171 阅读, 0 推荐, 收藏, 编辑
摘要:server.servlet.context-path=/ecsb-apiinterface这样写即可 阅读全文

解决Invalid bound statement (not found)的异常

2019-09-25 15:01 by hikoukay, 562 阅读, 0 推荐, 收藏, 编辑
摘要:今天在搭建框架的时候,报了一个Invalid bound statement (not found)的异常 经过分析,得出原因: 我的mybatis相关的dao和mapper.xml是通过逆向工程生成的,生成的命名都是Mapper结尾,比如UserMapper.java,UserMapper.xml 阅读全文

springboot available: expected at least 1 bean which qualifies as autowire candidate奇葩问题

2019-09-24 14:01 by hikoukay, 21353 阅读, 0 推荐, 收藏, 编辑
摘要:Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Er 阅读全文

spring boot用ide新建项目遇到的restcontroller不能导入的问题

2019-08-24 19:59 by hikoukay, 3734 阅读, 1 推荐, 收藏, 编辑
摘要:才开始学习spring boot,第一个程序helloworld就碰到@RestController和@RequestMapping(/hello)的注解都会报错的问题。 我个人的解决方法: 1.springboot默认有 <dependencies> <dependency> <groupId>o 阅读全文

redis入门,linux安装

2019-08-18 21:09 by hikoukay, 202 阅读, 0 推荐, 收藏, 编辑
摘要:1.下载 https://redis.io/download 2.上传到linux服务器tools文件夹下 3.解压到安装目录 tar -zxf /app/redis/redis-5.0.4.tar.gz 4.进入解压文件目录使用make对解压的Redis文件进行编译 cd /app/redis/r 阅读全文

ide快捷键

2019-08-07 10:33 by hikoukay, 335 阅读, 0 推荐, 收藏, 编辑
摘要:用久了eclipse接触新的ide工具肯定有些不适应,为idea新手介绍一些idea常用快捷键,对于提升效率很有帮助 Alt+insert 自动生成构造方法,set get方法及tostring等方法ctrl+d 向下复制一行ctrl+y 删除一行list.fori 相当于for循环,正序遍历lis 阅读全文

JSON.toJSONString(joinPoint.getArgs())报错getOutputStream() has already been called for this response

2019-08-05 20:12 by hikoukay, 3524 阅读, 0 推荐, 收藏, 编辑
摘要:nested exception is java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyn 阅读全文

常用linux命令

2019-08-01 15:16 by hikoukay, 213 阅读, 0 推荐, 收藏, 编辑
摘要:新建文件夹:mkdir app(文件夹名称)删除文件夹及文件夹中的文件:rm -rf app (app为文件夹名称) 拷贝文件: 将jdk-8u60-linux-x64.tar.gz拷贝到java目录下 cp /mnt/hgfs/linux/jdk-8u60-linux-x64.tar.gz /us 阅读全文
上一页 1 ··· 3 4 5 6 7 8 下一页