自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

诗和远方,任重道远

工作总结,偶尔生活,共享,见证这一切

  • 博客(69)
  • 资源 (11)
  • 收藏
  • 关注

原创 JPA集成QueryDsl,以及自定义存储库注意事项,和使用中的区别比较

关于数据库层框架,主要是Mybatis和JPA(主要是Springdata JPA),这里简单记录下自己使用过程中的小问题这里就不介绍,关于Jar的引入,Model和表的映射处理,以及主键,是否外键的选择了一、常见的继承关系和使用区别这里是可以使用specification实现单表的动态条件,拼接,很是方便只是比上面那个,少了动态条件的拼接,所以,一般使用上面那个二、...

2019-08-27 17:01:32 643

原创 SET FOREIGN_KEY_CHECKS命令

ll写在前面正文OverviewWhen to UseFOREIGN_KEY_CHECKS Details写在前面刚在import xx.sql文件的时候,使用的是 Navicat Data Model现在接触的项目是基本不用外键的(foreign key)的,可能单表设计,操作SQL更方便,尤其是JPA的存在,几乎都不用写sql的,但在表的设计使用若关联,即不使用外键约束表,只是在表里加...

2019-08-22 15:31:42 13161

原创 IDEA如何从数据库表生成带字段注释的Model,解决乱码问题,还有自动生成controller问题

都是基于groovy一、生成Model//import com.intellij.database.model.DasTable//import com.intellij.database.model.ObjectKind//import com.intellij.database.util.Case//import com.intellij.database.util.DasUtil...

2019-08-15 23:43:11 1330

原创 Page<V0>对象互转Page<V1>

都是基于map方法,介绍 2 种实现方式1. 这个mapper是基于mapStruct,常用来实现Model,DTO的互转, <!-- https://mvnrepository.com/artifact/org.mapstruct/mapstruct-jdk8 --> <dependency> <groupId>org.m...

2019-08-14 18:01:13 4746

原创 List的自定义排序

package list排序操作;import com.google.common.collect.Lists;import model.Book;import org.junit.Test;import java.util.Comparator;import java.util.List;import java.util.Map;import java.util.stream....

2019-08-14 16:55:45 692

原创 List的快速除重,多种实现

只有代码package list去重操作;import com.google.common.collect.Lists;import model.Book;import java.util.*;import java.util.concurrent.ConcurrentHashMap;import java.util.function.Function;import java.u...

2019-08-14 16:46:43 323

原创 List对象转Page对象参考,一行代码实现

上一篇 SpringData中Page对象的架构设计这里展示List对象转page对象,一行代码 @GetMapping("/listTopage") public Page listtoPage(){ List<CustomerDTO> customerDTOS = customerMapper.toCustomerDto(customerServic...

2019-08-14 16:45:07 3677 1

原创 SpringData中Page是个什么东西,架构和数据格式

当我想把一个List对象,封装成SpringData中的Page对象时代码实现 @GetMapping("/list") public List<CustomerDTO> getS1(){ return customerMapper.toCustomerDto(customerService.findAll()); } // Page<Cu...

2019-08-14 15:44:56 2176

原创 Java8的Stream操作

Java8的Stream操作,集合处理很是方便1. 写在前面点击查看,Java8 的新特性2. 创建 Stream有许多方法可以创建不同源的流实例。一旦创建,实例将不会修改其源,因此允许从单个源创建多个实例2.1. Empty Stream如果创建空流,要使用empty()方法,避免为没有元素的流返回Null.Stream<String> streamEmpty = St...

2019-08-13 22:00:39 4584

原创 Java中的所有时间类型,关系图

只有一张图

2019-08-13 17:29:59 441

原创 如何计算两个LocalDateTime的时间差,以及时分秒格式化操作

很多方法,这里介绍两个很方便的实现Demo1 @Test public void tr(){ final LocalDateTime fromDate = LocalDateTime.now(); final LocalDateTime toDate = LocalDateTime.now().plusHours(56); long m...

2019-08-13 16:49:20 28340 2

原创 Mysql中的四种时间类型,及其区别

四种时间类型timestamptimedatedatetime感觉就timestamp不一样,可能序列化后的数据格式就不是这么简单了,下次有时间我再整理出来序列化后的数据格式。...

2019-08-13 10:26:08 944 1

原创 IDEA怎么从数据库表映射Model,一键生成还有Mybatis的逆向工程

一、只生成Model,需两步第一步,连接数据库第二步,选中多个,和生成目录,单击即可其实是基于,先自动生成 .groovy文件,再根据文件配置,生成你想要的映射Model,.groovy文件可修改import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.i...

2019-08-13 10:08:28 3376

原创 计算机科学最难的东西之一

源自一句话There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.这里我所说的就是关于命名约束的问题

2019-08-12 14:48:40 715

原创 Jeff Atwood Quotes

阿特伍德一、There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.二、“Success is rarely determined by the quality of your ideas. But it is frequently deter...

2019-08-12 14:17:51 372

原创 java怎么执行CMD,Linux shell,redis shell,mysql shell等等shell命令

写这篇的起因在于,当我想用java代码实现文件的上传下载,想起curl 或者wget已经进行很好的封装,但他们都是基于C实现的命令行运行方式,暂时没有API或者好的方法可以操作,只能想到直接调用本地的CMD命令去实现。对C系列的语言没有接触过,不知道他们是否有API的概念??或者C系列语言,Python,Java等等之间是否可以有共同的接触交流方式???一、windows cmd两种实现1....

2019-08-11 22:40:47 601

原创 List,Map和Pojo互转,一行代码解决。多种实现

写在前面,注意引包,hutool和Jackson.databind,guava这里是多种实现,看自己想用哪个就引特定的包!一、pojo 互转 map二、list 互转 mappackage list常用操作.list_map_pojo互相转化;import cn.hutool.core.bean.BeanUtil;import cn.hutool.json.JSONUtil;impo...

2019-08-10 22:59:11 3432

转载 java中static关键字

Java中的static关键字解析static关键字是很多朋友在编写代码和阅读代码时碰到的比较难以理解的一个关键字,也是各大公司的面试官喜欢在面试时问到的知识点之一。下面就先讲述一下static关键字的用法和平常容易误解的地方,最后列举了一些面试笔试中常见的关于static的考题。以下是本文的目录大纲:一.static关键字的用途二.static关键字的误区三.常见的笔试面试题一.sta...

2019-08-10 16:26:50 398

原创 while_Keyword

Java while Loop with ExamplesIn this quick article, we will learn how to use while loop with examples. The while loop is Java’s most fundamental loop statement. It repeats a statement or block while ...

2019-08-09 17:32:16 612

原创 volatile_Keyword

volatile (computer programming)From Wikipedia, the free encyclopediaIn computer programming, particularly in the C, C++, C#, and Java programming languages, the volatile keyword indicates that a val...

2019-08-09 17:30:49 700

原创 void_Keyword

Java void KeywordThe void keyword in Java denotes that a method does not have a return type. However, even though a constructor method can never have a return type, it does not have the void keyword ...

2019-08-09 17:30:15 205

原创 try_Keyword

Java try/catch BlockJava Exceptions TutorialIn this article, we will learn in depth about try/catch block and how to use try/catch block to handle exceptions.What will we learn in this articles?t...

2019-08-09 17:29:43 213

原创 transient_Keyword

Java Transient KeywordJava transient keyword is used in serialization. If you define any data member as transient, it will not be serialized.Let’s take an example, I have declared a class as Employe...

2019-08-09 17:29:08 248

原创 throws_Keyword

Java throws KeywordJava Exceptions TutorialThe Java throws keyword is used to declare an exception. It gives an information to the programmer that there may occur an exception so it is better for th...

2019-08-09 17:28:31 184

原创 throw_Keyword

Java throw KeywordJava Exception TutorialIn the previous article Java try/catch Block, we have only been catching exceptions that are thrown by the Java run-time system. However, it is possible for ...

2019-08-09 17:27:54 305

原创 switch_Keyword

Java Switch Case Statement with ExamplesIn this quick article, we will look into Switch case statement, which is used when we have a number of options (or choices) and we may need to perform a differ...

2019-08-09 17:27:13 322

原创 synchronized_Keyword

synchronized Java Keyword with ExamplesThe synchronized keyword may be applied to a method or statement block and provides protection for critical sections that should only be executed by one thread ...

2019-08-09 17:27:07 250

原创 super_Keyword

super Keyword in Java with ExamplesIn this article, we will discuss super keyword and it’s usage with lots of examples.The super keyword in Java is a reference variable that is used to refer parent...

2019-08-09 17:23:24 300

原创 strictfp_Keyword

strictfp维基百科,自由的百科全书strictfp是Java编程语言中的一个修饰符,它限制浮点计算以确保可移植性。strictfp命令是使用Java虚拟机(JVM)1.2版引入Java的,可用于所有当前更新的Java VM。内容1 基础2 它是如何工作的3 用法4 参考文献基础的IEEE标准IEEE 754规定了两个浮点计算并且以各种格式,包括单(32位,在Java的使用浮...

2019-08-09 17:22:25 351

原创 static_Keyword

static Keyword in Java with ExamplesIn this article, we will discuss a lot about static keyword and it’s usage with respect to variables, methods, blocks and nested class.The static keyword in Java ...

2019-08-09 11:21:44 252

原创 short_Keyword

short Java Keyword with ExamplesKey points about short Java KeywordThe short keyword is used to declare a variable as a numeric type.short is a signed 16-bit type.It has a range from –32,768 to 3...

2019-08-09 11:21:08 107

原创 return_Keyword

return Java Keyword with ExamplesThe return keyword causes a method to return to the method that called it, passing a value that matches the return type of the returning method.Below diagram describ...

2019-08-09 11:20:13 279

原创 public_Keyword

public Java Keyword with ExamplesThe public keyword is an access control modifier that may be applied to a class, a method or a field (a variable declared in a class).If a class or its members are d...

2019-08-09 11:19:38 218

原创 protected_Keyword

protected Java Keyword with ExamplesThe protected keyword is an access control modifier that may be applied to a class, a method or a field (a variable declared in a class).If a class or its members...

2019-08-09 11:18:35 129

原创 private_Keyword

private Java Keyword with ExamplesThe private keyword is an access control modifier that may be applied to a class, a method or a field (a variable declared in a class).Key points about private Java...

2019-08-09 11:15:56 197

原创 package_Keyword

Packages in Java with ExamplesIn this article, we will learn below topics related to Java Packages.What will we learn?What Is a Package?Advantages of using PackagesReal-world ExamplesJava Packa...

2019-08-09 11:15:22 789

原创 new_Keyword

new Java Keyword with ExamplesThe new keyword is used to create a new instance of a class.The new Java Keyword ExamplesThe new keyword is used to create a new instance of a class.Student student =...

2019-08-09 11:14:39 298

原创 native_Keyword

native Java Keyword with ExamplesThe native keyword is applied to a method to indicate that the method is implemented in native code using JNI (Java Native Interface).Key points about native Java Ke...

2019-08-09 11:13:59 139

原创 long_Keyword

long Java Keyword with ExamplesKey points about long Java KeywordThe long keyword is used to declare a variable as a long primitive type.The long primitive type is a signed 64-bit type and is usef...

2019-08-09 11:13:29 213

原创 interface_Keyword

Interface Java Keyword with ExamplesThis guide walks you through how to create interfaces in real projects, using java 8 static and default methods in java projects.As we know, In the Java programmi...

2019-08-09 11:12:51 560

sampledatabase.zip

Mysql测试数据集

2019-10-24

classicmodels.sql

数据库脚本还有基础测试数据!

2019-07-01

init.gradle

引入Gradle项目时的重要配置文件,不配置会下载很慢很慢或者可以解决,还没试

2019-06-23

Deep Learning深度学习

Deep Learning深度学习,全英文,非诚勿扰

2019-03-05

MYSQL官方文档(全英文)

MYSQL官方文档(全英文),苦涩难懂,更权威

2019-03-05

TensorFlow与深度学习

TensorFlow是适合所有人的开放源代码机器学习框架,用于进行高性能数值计算。借助其灵活的架构,用户可以轻松地将计算工作部署到多种平台(CPU、GPU、TPU)和设备(桌面设备、服务器集群、移动设备、边缘设备等)。TensorFlow™ 最初是由 Google Brain 团队(隶属于 Google 的 AI 部门)中的研究人员和工程师开发的,可为机器学习和深度学习提供强力支持,并且其灵活的数值计算核心广泛应用于许多其他科学领域。

2019-03-01

Matlab深度学习_机器学习_神经网络_人工智能

全英文文档,非诚勿扰……也是很权威的作者,内容也非常精彩

2019-03-01

网络是怎样连接的 - 户根勤

网络是怎样连接的 - 户根勤,图灵出版社,很好的一本书,欢迎大家下载,学习……

2019-03-01

Hadoop云计算和云存储源码实现解析

大数据的入门到精通知识必备,基础而又涉及底层实现,入门必备,进阶需要的知识文档

2018-08-06

空空如也

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

TA关注的人

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