- 博客(22)
- 问答 (5)
- 收藏
- 关注
原创 使用stream 进行分组 并取得年龄最大一组人员
List<User> userList =new ArrayList<User>();userList.add(new User("1",1,"1","1"));userList.add(new User("2",14,"1","2"));userList.add(new User("12",41,"2","2"));userList.add(new User(...
2020-05-07 15:36:26
1786
原创 Kettle安装使用教程
网易云课堂 链接:https://study.163.com/course/courseLearn.htm?courseId=1209333886#/learn/video?lessonId=1279077634&courseId=1209333886
2020-02-27 14:32:02
355
原创 windows下安装mysql
mysql官方下载地址:https://dev.mysql.com/downloads/file/?id=487426配置环境:变量名:MYSQL_HOME变量值:E:\mysql\mysql-5.7.27-win32(存放mysql的路径)path里添加:%MYSQL_HOME%\bin;...
2020-02-09 10:12:19
136
原创 JS 模拟搜索引擎候选框模糊查询
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>模拟百度搜索框</title> <meta charset="utf-8" /> <style> ...
2019-11-11 15:30:28
410
原创 git 报错 时出现Clone failed early EOF错误解决
当使用git clone 产生这个问题的时候,在第一次克隆的时候,把克隆深度设置为1,然后再fetchgit clone https://example.com/example/example.git --depth 1下载项目的时候遇到了:Clone failed early EOF The remote end hung up unexpectedly index-pack fa...
2019-08-23 10:15:11
1605
原创 postgrel sql的递归
WITH RECURSIVE cte AS( SELECT id,pid from szyt_base_industywhere id<choose> <when test=" category != null"> = #{category} </when> <otherwise> I...
2019-08-19 20:32:35
285
原创 索引的优缺点,如何创建索引
优点:1、加快数据检索速度,提高对数据访问效率2、提高数据查询性能缺点:1、占用大量硬盘空间2、数据的增删改等更新操作,需要维护索引时间,降低更新速度使用场合:1、主键列中创建索引2、多表连接时连接列创建索引3、where子句查询的列4、需要经常G...
2019-06-25 14:44:02
447
原创 什么是事物?
一.什么是事务事务是应用程序中一系列严密的操作,所有操作必须成功完成,否则在每个操作中所作的所有更改都会被撤消。也就是事务具有原子性,一个事务中的一系列的操作要么全部成功,要么一个都不做。事务的结束有两种,当事务中的所以步骤全部成功执行时,事务提交。如果其中一个步骤失败,将发生回滚操作,撤消撤消之前到事务开始时的所以操作。事务的特性(ACID特性)A:原子性(Atomicity)...
2019-06-25 14:27:04
2002
原创 策略模式
//策略模式接口public interface IStrategy { //定义抽象的算法方法,来约束具体的算法方法实现 public void algorithmMethod();}具体的策略实现://策略发法的实现public class StrategyImpl implements IStrategy { //具体的方法实现 @Ove...
2019-06-14 17:05:41
115
原创 单例模式的设计
单例模式的设计://懒汉式单例模式,在第一次调用时实例化public class LazyHolder { public LazyHolder(){} private static LazyHolder lazyHolder=null; //方式一 //非线程安全,加上同步锁,但是每次都要同步,会影响性能 public static sync...
2019-06-12 14:56:52
260
原创 微服务之--服务管理
服务管理 配置 pom.xml(继承eureka服务后面的配置)<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi...
2019-03-15 10:49:12
1392
原创 微服务之--网关配置
配置网关pom.xml(指教基础eureka里面最后面的pom.xml配置)<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2019-03-15 10:44:31
2478
1
原创 微服务之--断路器 集群监控 Hystrix Turbine
-断路器 集群监控 Hystrix TurbineTurbine有一个重要的功能就是汇聚监控信息,并将汇聚到的监控信息提供给Hystrix Dashboard来集中展示和监控。配置pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4...
2019-03-15 10:38:54
271
原创 微服务架构---eureka注册
新建一个module服务步骤:然后一直Next 。1、首先配置pom.xml配置<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch...
2019-03-15 10:19:56
211
原创 引用不同swagger 版本问题
引用swagger2 2.6.1版本<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version></de
2019-03-15 09:44:18
7947
1
原创 关于mysql连接报错Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] 记录
这个配置我Mysql的jar包引用的是错误原因:提示说是数据源配置错误,dialect,driver_class,url,username,password。检查一下这五项解决方法:org.hibernate.dialect.MySQL5Dialect:新版本的mysql配置org.hibernate.dialect.MySQLDialect :老版本...
2019-03-14 14:58:45
3095
原创 JAVA文件上传转码问题
public static String getCharSet(File file)throws IOException{ String charset = "GBK"; byte[] first3Bytes =new byte[3]; boolean checked= false; BufferedInputStream bis = new Buf...
2019-01-24 11:03:48
770
原创 关于匿名对象,没有对象的理解
new ClassStudent().f();//又new了一个对象出来new ClassStudent().d();//又new了一个对象出来System.out.println("========================================================");ClassStudent student = new ClassStudent...
2018-11-28 14:21:53
183
原创 Executing an update/delete query 解决办法
Executing an update/delete query 报错是因为没有事务,解决办法1:在@Modifying后面加@Transactional解决办法2:采用AOP声明式<tx:advice id="dao" transaction-manager="transactionManager"> <tx:attributes> ...
2018-11-09 14:08:30
7186
原创 c#asp.net 微信公众号开发之--服务号自定义菜单
找了好久 看了下, 好多的坑 ,也是醉了 。。。。。。。。。。 protected void Page_Load(object sender, EventArgs e) { string strReturn = get_accessToken();//获取access_token GetPage(strReturn); // string pos...
2018-07-02 17:40:41
1581
原创 C# ASP.NET 微信公众号开发 之 如何验证 TOKEN
const string Token = "你的token"; protected void Page_Load(object sender, EventArgs e) { if (Request.HttpMethod.ToLower() == "post") { }...
2018-06-01 16:08:46
2976
空空如也
java Excel导出 怎么设置某一列靠左对齐 其它靠右对齐啊?
2019-06-24
用IDEA启动spring boot 项目 别的电脑能正常启动,我的为啥不行?
2018-11-02
C# token验证失败是什么原因?
2018-05-29
域名无法访问,求大佬指点下
2018-05-14
如何实现跨服务器验证视频是否存现 asp.net
2018-05-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人