- 博客(15)
- 收藏
- 关注
原创 在eclipse中打jar包报错
Maven Install报错: Perhaps you are running on a JRE rather than a JDK? 中文描述:此环境中未提供编译器,你可能使用jre运行而不是jdk。 引发原因:Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有 eclipse默认运行在jre上,而不是jdk 点击add添加jdk ...
2019-11-14 14:34:36
366
原创 微信小程序使用ECharts图表
微信小程序使用ECharts图表 1,引入ECharts组件 GitHab网址:https://github.com/apache/incubator-echarts 1),引入项目 将这个文件夹添加到微信小程序项目里 2),配置需要引入的页面 “.json” 文件配置组件路径 "usingComponents": { "ec-canvas": "../../../compone...
2019-11-14 11:42:57
598
原创 使用ObjectMapper进行json转object
使用ObjectMapper进行json转object 1,配置pom文件 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> &l...
2019-11-14 11:33:30
442
原创 微信小程序裁剪图片
1,引入“we-cropper.js” 1,在项目中的应用 2,对应的下载地址 https://pan.baidu.com/s/1Q-zx7yINR2atYFCd9AIFaw 2,显示页面“.wxml” <!-- 显示的照片 --> <!-- <view class='toux'> --> <!-- <image...
2019-10-09 17:59:38
615
原创 springMVC配置多数据源
springMVC配置多数据源 1,先配置“db.properties”文件 #MySQL 主数据库 mysql.driver=com.mysql.jdbc.Driver mysql.url=jdbc:mysql://127.0.0.1:3306/forest_blog?useUnicode=true&characterEncoding=utf8 mysql.us...
2019-09-05 12:55:01
162
原创 Mybatis插入语句返回主键ID
Mybatis插入语句返回主键ID 1,主键为自增 1),mapper.xml的sql语句 <insert id="insert" parameterType="gtd.qicke.com.pojo.Article" useGeneratedKeys="true" keyProperty="articleId"> insert into ...
2019-08-30 10:30:55
238
原创 Fastdfs处理文件上传
Fastdfs处理文件上传 1,后台控制层代码 import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web...
2019-08-28 09:34:07
301
原创 Springboot配置跨域访问
Springboot配置跨域访问 因springboot框架通常用于前后端分离项目,因此需配置后台允许跨域访问(具体看注释),配置类如下,将该类加入工程中即可。 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import...
2019-08-28 09:27:52
206
原创 springboot配置mybatis
springboot配置数据库 1,创建springboot项目 引入的pom文件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depende...
2019-08-28 09:26:35
157
原创 springboot配置redis
springboot配置redis 1,创建springboot项目 引入的pom文件 <!-- 添加启动器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star...
2019-08-28 09:25:56
327
原创 SpringMVC项目配置redis
SpringMVC项目配置redis 1,在resources文件夹在配置“redis.properties”文件 redis.hostName=127.0.0.1 #redis连接ip redis.port=6379 #redis端口 默认是6379 redis.password=123456 #redis密码 redis.timeout=100000 redis.maxIdle=400 r...
2019-08-28 09:19:06
2493
1
原创 Mybatis逆向工程中的分页查询
Mybatis逆向工程中的分页查询 1,对实体类的操作 在对应的Example类中添加属性,并提供set&get方法 private Integer limit; private Long offset; public Integer getLimit() { return this.limit; } public void setLimit(Int...
2019-08-27 18:14:14
326
原创 Mybatis逆向工程
Mybatis逆向工程 配置文件generatorConfig.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybati...
2019-08-27 18:04:33
184
1
原创 excel表格数据导入java封装类
excel表格数据导入java封装类 需要导入的pom文件依赖 <dependency> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> <version>2.6.0</version> ...
2019-08-27 17:54:21
235
原创 git管理命令
git管理命令 从远程拉代码 git clone xxx (xxx为刚刚复制的仓库链接) 主分支提交代码 git add . git commit -m "xxx" git push (提交到主分支) git push origin xxx (提交到分支,,xxx为分支名) 新建分支 git branch xxx (xxx填写你的分支名称) 查看分支 查看远程分支:git branch ...
2019-08-27 17:48:42
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅