- 博客(15)
- 收藏
- 关注
原创 mybatis+mysql (有则更新,无则插入)
创建表在这里插入DROP TABLEIF EXISTS `virtualMachines`;CREATE TABLE `virtualMachines` ( name VARCHAR (100) NOT NULL COMMENT '虚拟机名称', status VARCHAR (100) DEFAULT NULL COMMENT '虚拟机状态', state VA...
2019-01-24 09:27:29
4029
原创 MySQL server version for the right syntax to use near
文件中可能含有unicode的空格,去掉空格即可insert into virtualMachines ( `name`,`status`,`state`,`hostCPU`,`hostMemory`,`provisionedSpace`,`usedSpace`,`ip`,`isFtpInstalled` ) values ( ?, ?, ?, ?, ...
2019-01-24 09:13:59
21621
原创 bootstrap table分页
1. 客户端分页 1) js页面sidePagination : "client", // 设置在哪里进行分页,可选值为"client" 或者 "server"responseHandler: function(data){ return data.rows; },queryParams : function(params) { ...
2019-01-24 08:14:24
334
原创 Springboot 非web项目,多数据源配置
1. application.properties文件springboot 1 .0配置数据源的过程中主要是写成:spring.datasource.url 和spring.datasource.driverClassName。springboot 2.0升级之后需要变更成:spring.datasource.jdbc-url和spring.datasource.driver-class-...
2019-01-23 08:10:15
371
原创 springboot yml文件语法,以及配置文件注入
转自https://blog.youkuaiyun.com/sdzhangshulong/article/details/801249001.yml文件如下:2.配置类:@Component@ConfigurationProperties(prefix = "ftp") public class FTPConfig { private String host; priv...
2019-01-22 13:41:59
374
原创 thymeleaf 常用标签
1)th:class 带空格拼接 <div th:id="d_+${fv.id}" th:class="'big '+${fv.icon}+'Big'"></div> 效果:<div id="d_1" class="big db_class_png txtBig"></div> 其它:t
2019-01-20 20:56:56
316
原创 springboot从resource目录下读取文件
File file = ResourceUtils.getFile("classpath:data.json");String jsonstring=FileUtils.readFileToString(file,"utf-8")
2019-01-20 20:11:30
2493
1
原创 js 字符串转json对象并遍历
<script type="text/javascript"> $(function(){ bindList(0); }); function bindList(offset) { $.ajax({ type : 'get', url : '/system/servers/checkServer', dataType : 'json', suc...
2019-01-16 08:04:52
1331
原创 js将ajax请求结果保存为对象 遍历对象变为下拉框选项
1. 定义对象//定义全局对象var classifyObj=new Object();//调用请求getClassify();function getClassify() { $.ajax({ url : "/common/secFile/classifyList", type : "get", async : false, success : function...
2019-01-14 18:05:13
330
原创 thymeleaf js中拼接字符串调用
1. 直接传值:+${fv.id}+ <button type="button" class="btn btn-danger btn-sm" th:onclick="'javascript:deleteUser('+${fv.id}+')' ">删除</button>效果:<button type="button" class="
2019-01-14 09:47:49
1699
原创 java 获取指定日期前一天或后一天
public static String getSpecifiedDayBefore(String specifiedDay) { //SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date date = nul...
2019-01-14 08:11:34
2824
转载 win10 git安装向码云提交代码
安装git 首先去安装好git,如果没有安装好可以去官网下载,下载地址为:https://git-scm.com/downloads安装好后,点击鼠标右键,选中 “Git Bash here 打开后的如下所示,输入指令cd ~/.ssh/ 如果提示如果提示 “ No such file or directory" 那么可以采用 命令:mkdir ~/.ssh来创建文件夹...
2019-01-05 16:37:31
792
3
原创 springboot summernote 加入自定义上传按钮
自定义按钮var HelloButton = function(context) { var ui = $.summernote.ui; // create button var button = ui.button({ contents : '<i class="fa fa-child"/> Hello', tooltip : 'he...
2019-01-04 17:21:21
2403
转载 springboot2.X文件上传大小限制设置
#springboot2.X文件上传大小限制spring.servlet.multipart.max-file-size=1024MBspring.servlet.multipart.max-request-size=1024MB
2019-01-01 15:13:56
7316
原创 文件上传下载PDF预览
1. 创建数据库--创建文件对象表CREATE TABLE sys_file ( id bigint NOT NULL identity(1,1), name nvarchar(100),--文件名称 size nvarchar(100),--文件大小 type int DEFAULT NULL ,-- '文件类型', url varchar(200) DEFAULT ...
2019-01-01 14:38:58
1249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人