自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 资源 (6)
  • 收藏
  • 关注

原创 oracle存储过程存储函数总结

PL/SQL语法存储过程存储函数触发器

2018-01-07 10:20:02 1963

原创 BootStrap + AngularJS 实现自定义分页

页面引入: 序号 商品编号 名称 价格 {{$index+1}} {{product.id}} {{product.name}} {{product.price}} 上一页 {{page}}

2017-11-20 21:14:27 668

原创 KindEditor 在线编辑器 自定义文件上传与图片管理器实现

引入:kindeditor.js前台页面KindEditor.ready(function(K) {//初始化编辑器window.editor = K.create('#promorionText', {//容器的各项功能items: ['source', '|', 'undo', 'redo', '|', 'preview', 'print

2017-11-20 21:07:07 4709 1

原创 AngularJS 实现判断密码强度

输入密码判断密码强度安全强度:*低安全强度:***中安全强度:*****高1.定义css样式     .show-green{    color: green;    }    .show-yellow{    color: orange;    }    .show-red{    color: red;    }

2017-11-19 16:29:56 1102

原创 IDEA修改字符集编码

文件乱码控制台乱码。

2024-02-28 20:06:52 397 1

原创 mybatis-plus+spring-boot配置双数据源mysql+sqlserver

原本项目用的是mysql,因为需要从另一个系统取数据,索性配成双数据库.写两个configuration,一个数据源一个.引入sqlserver引擎。

2022-08-29 20:39:51 1770 1

原创 软件工程-笔记(未整理)

软件工程目的:主要解决人与人之间的问题五大步骤: 1.communication 沟通 customer collaboration and requirement gathering 客户协作和需求收集 与客户沟通,判断客户态度与水平,知己知彼 收集客户信息 项目启动,需求获取 2.Planning 计划 establishes engineering work plan,describes technical risks,lists resource r.

2022-02-09 15:59:34 483

原创 request.getScheme()获取不到https的问题,nginx与tomcat不在同一服务器

最近公司项目升级https,在nginx端配置好后项目打开访问不了资源文件,发现jsp页面中有一句:String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";request.getScheme()获取的地址不是https而是http,而我访问的地址为https,f12打开发现满屏错误码:This request has be

2021-10-08 15:46:28 3320

原创 java定时任务cron表达式 ,每周五下午两点半执行

@Scheduled(cron = “0 30 14 ? * 5”)信了其他文章的鬼,也可能java不一样,DayofWeek这个参数 1就是周一,2就是周二,用代码验证过了.

2021-06-08 18:28:22 7591 5

原创 mysql 先排序后分组,取每组中的最大值

先排序后分组 高版本需加 limit !!!select cdp1.* from (select * from crm_deposit_pay order by lastModifiedTime desc limit 999999) cdp1group by cdp1.memberId

2021-01-04 10:21:28 608

原创 mysql 汉字排序

select * from user order by convert(name using gbk) desc将要排序的字段转码至gbk再进行排序

2021-01-04 10:19:42 526

原创 mysql sum加条件

SUM(IF(status= 1,amount,0))所有status=1的amount求和

2021-01-04 10:18:06 1474 1

原创 mysql count 加条件

mysqlcount(cec.status=0 or null) //or null 表示不满足条件时不计算sql server 解决方案SELECT SUM(CASE WHEN myColumn=1 THEN 1 ELSE 0 END) FROM AD_CurrentView

2021-01-04 10:15:59 191

原创 js 文件上传

上传单个文件前端function checkAndSaveFlie() { var resourceFile = $("#resourceFile").val(); // var imageFileUrl = $("#imageFileUrl").val(); var resourceTitle = $("#resourceTitle").val(); if(__isEmpty(resourceFile)){ lay

2020-11-10 18:27:58 137

原创 Intellij IDEA debug 窗口消失问题

版本:2019.3.1问题:debug窗口消失之前的项目启动以后debug就自己出来了,这次没有出来,直接跳出一个services窗口,里面是运行信息网上找了各种方法,View里面找没有,重置窗口没用之后逆向思维了一下,搜’idea 整合debug窗口至services’ 发现是IntelliJ IDEA 2019.2引入了Service工具窗口,可将所有内容集中在一个地方: View | Tool Windows| Services 或按 Alt + 8(在Windows和Linux上)或

2020-05-22 12:53:30 15306 10

原创 mysql 杂笔

count 加条件`count(cec.status=0 or null)` //or null 表示不满足条件时不计算汉字排序select * from user order by convert(name using gbk) desc字符串转数字字段(纯数字)+0同表查询修改报错 You can’t specify target table ‘base_products’...

2019-12-12 16:59:30 154

原创 关于img图片翻转负90度的问题

参考链接:https://www.jianshu.com/p/442b5ad217b8由于原作者把图片做了压缩,所以在这里我简化了一下(就是偷点懒)前置:1.我请求的是阿里的oss 需要在oss管理里添加跨域设置2.exif.js 下载js代码/** * 判断图片角度并调整(针对手机拍照图片) 需要请求的图片地址允许跨域 * @param fileNameFull <img&...

2019-11-22 11:52:02 2256

转载 sql语句:同一张表两个相同外键查询

假设A表名称:City,B表名称:GoToselect a.CityName as '出发地', b.CityName as '目的地', c.LeaveDate as '出发时间'from City as a, City as b, Goto as cwhere c.FromCity = a.CityIDand c.ToCity = b.CityID笔记

2018-04-02 10:31:01 2903

原创 spring MVC 实现文件上传

spring MVC 实现文件上传首先引入jar包 commons-io-1.3.2.jar commons-fileupload-1.2.1.jar 配置文件解析&lt;bean id="multipartResolver" class="org.springframework.web.multipart.commons.Common...

2018-03-23 11:17:42 200

原创 Mybatis分页插件 - PageHelper的使用

该插件目前支持Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六种数据库分页使用方法一.把PageHelper依赖的jar包添加到工程中二.在Mybatis配置xml中配置拦截器插件&lt;plugins&gt; &lt;!-- com.github.pagehelper为PageHelper类所在包名 --...

2018-02-27 10:31:08 195

原创 ORACLE数据库视图,序列,索引总结

oracle视图物化视图序列同义词索引

2018-01-07 09:40:34 631

原创 深入浅出Redis之linux系统环境下搭建redis服务

redis的安装Redis是c语言开发的。 安装redis需要c语言的编译环境。如果没有gcc需要在线安装。 linux命令:Yum install gcc-c++安装步骤:第一步:redis的源码包(如:redis-4.0.1.tar.gz)上传到linux系统。 第二步:解压缩redis。 linux命令:tar -zxvf redis-4.0.1.tar.gz -C /要解压到的目标目

2017-12-30 19:59:38 163

原创 Codewars解题Sudoku Solution Validator数独校验

题目:数独解决方案验证器 Sudoku Background Sudoku is a game played on a 9x9 grid. The goal of the game is to fill all cells of the grid with digits from 1 to 9, so that each column, each row, and each

2017-12-15 21:42:05 1256 1

原创 Codewars解题Odd or Even?奇数或偶数

题目: Given an array of numbers, determine whether the sum of all of the numbers is odd or even. Give your answer in string format as ‘odd’ or ‘even’. If the input array is empty consider

2017-12-15 21:27:58 1862 1

原创 Codewars解题Playing with digits

题目 Some numbers have funny properties. For example: 89 –> 8¹ + 9² = 89 * 1 695 –> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 –> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51 Given a positive

2017-12-15 21:14:53 827

原创 Codewars解题Are they the "same"?

题目 Given two arrays a and b write a function comp(a, b) (compSame(a, b) in Clojure) that checks whether the two arrays have the “same” elements, with the same multiplicities. “Same” means, her

2017-12-15 20:48:35 1274

原创 Mybatis逆向工程生成Mapper

GeneratorSqlmap.java文件import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.List;import org.mybatis.generator.api.MyBatisGenerator;import org.mybatis.generator.

2017-12-13 21:35:24 408

原创 Mybatis一级缓存与二级缓存

一级缓存一级缓存是针对每一个sqlSession进行缓存。每个sqlSession对象中使用Map存储一级缓存数据, map中存储了sql执行查询的结果集(java对象)。生命周期第一次查询先去缓存中找是否有缓存数据,发现没有,查询数据库,将查询到的数据写入sqlsession的一级缓存区域。 第二次查询先去缓存中找是否有缓存数据,发现有,直接从缓存区域中取出数据返回。 如果 执行sqlses

2017-12-13 21:25:00 2602 5

原创 Mybatis基础入门

SqlMapConfig.xml<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configurationPUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration> <!-- 和spring

2017-12-13 21:12:41 182

原创 ElasticSearch索引的相关操作---javaEE--SpringDataElasticSearch

一.ElasticSearch下载安装运行官网: https://www.elastic.co/products/elasticsearchWindow 系统下载 zip 版本,linux 系统下载 tar 版本目录介绍 bin 存放 elasticSearch 运行命令\ config 存放配置文件 lib 存放 elasticSearch 运行依赖 jar 包 mo

2017-12-01 17:54:49 465

原创 excel 批量数据导入数据库与数据库导出数据到excel

批量导入数据------spring Data JPA  整合 Hibernate// 文件上传 ---- 批量导入----------------------------------- private File file; public void setFile(File file) { this.file = file; } // 文件上传 @Action(value

2017-11-20 21:34:27 317

原创 javamail 发送邮件

发送送邮件的工具类package cn.bos.utils;import java.util.Properties;import javax.mail.Message;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.InternetAddress;import ja

2017-11-20 21:24:13 179

原创 freemarker 模板配制及使用

模板文件${title}${msg}使用模板生成文件@Testpublic void test1() throws IOException, TemplateException{//创建模板对象Configuration configuration = new Configuration(Configuration

2017-11-20 20:39:15 544

原创 quartz整合spring 相关配置及使用

applicationContext.xml-----------立即执行-----------一分钟执行一次import org.quartz.spi.TriggerFiredBundle;import org.springframework.beans.factory.annotation.

2017-11-19 21:39:11 173

原创 StringUtils 判断字符串

import org.apache.commons.lang3.StringUtils;//empty 判断字符串是否不为空,空格不为空,""为空,null为空System.out.println(StringUtils.isEmpty(null));//trueSystem.out.println(StringUtils.isEmpty(""));//trueSy

2017-11-19 16:26:02 709

原创 redis 与Spring Data Redis 使用

application.xml        class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"          p:host-name="localhost

2017-11-19 13:46:56 172

原创 activeMQ 消息队列 相关配置

初学activeMQ 有待进一步深入了解

2017-11-18 21:39:11 361

原创 java Date 日期 格式化

date 格式化 DateFormat 是日期/时间格式化子类的抽象类,它以与语言无关的方式格式化并解析日期或时间。

2017-11-18 20:46:47 297

原创 webService相关配置-java

服务器端maven项目需要依赖         cxf-rt-frontend-jaxws         cxf-rt-transports-http         cxf-rt-frontend-jaxrs         cxf-rt-rs-clientcxf-rt-rs-extension-providersjettisontomcat-maven-plu

2017-11-13 11:03:52 432

原创 排序算法--冒泡排序

个人整理的冒泡排序算法/** * 冒泡排序 * * 从头比较相邻两个数,较大的在前的话与较小的互换 */ public static int[] test03(int[] a) { int temp = 0; for (int i = 0; i < a.length - 1; i++) { for (int j = 0; j < a.length -

2017-11-01 12:08:32 144

〓calibre电子书格式转换器〓

〓calibre电子书格式转换器〓

2021-03-29

winrar-x64-571sc.exe

winrar安装包x64

2019-11-13

Hydra9.6(Windows系统).exe

Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6 Hydra9.6

2018-01-26

notepadplus

Notepad++是 Windows操作系统下的一套文本编辑器(软件版权许可证: GPL),有完整的中文化接口及支持多国语言编写的功能(UTF8技术)。

2018-01-26

jdk-7u3-windows-i586.exe

jdk1.7 JDK 1.7 32位下载|jdk1.7 (JAVA运行环境) java

2017-12-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除