自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Ecloss

我们都在阴沟里,但仍有人仰望星空。

  • 博客(160)
  • 收藏
  • 关注

原创 编程软件各种资源地址

博主最近想换电脑了,但是一想到有很多软件又要一一找资源下载就觉得很麻烦,就把这些资源集中到自己的网盘里,分享给各位网友,也好节约大家的时间。1. IdeaLij IDEA链接:https://pan.baidu.com/s/1SIOyx-9b_7h1CV8iZlSbqQ 提取码:mnx2 2. notepad 7.5链接:https://pan.baidu.com/s/10...

2018-11-22 20:31:06 1291 1

转载 mysql查询时间段内数据

转载地址:https://blog.csdn.net/bj262948/article/details/79087472-- 今天SELECT * FROM 表名称 where TO_DAYS(创建时间(字段)) = TO_DAYS(NOW());-- 昨天SELECT * FROM 表名称 where TO_DAYS(NOW()) - TO_DAYS(创建时间(字段)) <=...

2018-11-21 14:09:09 330

转载 IntelliJ IDEA 中创建类的时候,可以直接自动给类加注释的设置

转载地址: https://blog.csdn.net/qq_27093465/article/details/83510884在新建类的时候,是可以直接表面你要新建的这个类是干啥的,即,给这个新建的类加上注释。我这详细记录示范下,在idea里面是怎么设置和操作的。1,idea创建类的时候,自动给类加注释的设置示范。这地方,可以设置class,interface,enum,等不同J...

2018-11-19 18:35:23 2096

转载 Tomcat调优的技巧

目录一、描述二、Tomcat 自身调优三、JVM 调优 一、描述最近,在补充自己的短板,刚好整理到 Tomcat 调优这块,基本上面试必问,于是就花了点时间去搜集一下 Tomcat 调优都调了些什么,先记录一下调优手段,更多详细的原理和实现以后用到时候再来补充记录,下面就来介绍一下,Tomcat 调优大致分为两大类。1、Tomcat的自身调优采用动静分离节约 To...

2018-11-15 13:55:02 372

原创 MySQL 使用 Navicat 导出和导入数据库

MySQL使用Navicat导出和导入数据库 在日常开发过程中,经常需要将数据库进行备份,或者导入导出操作。这对于MySQL数据库来说,用Navicat可以很轻松的解决。接下来,我就来演示一下Navicat如何导出和导入MySQL数据库1. 导出数据库 在你要导出的数据库上右键----> ‘转储SQL文件’----选择'结构和数据'2. 转储SQL文件----开始3...

2018-11-15 11:42:24 994

转载 MySQL异常【数据库断开连接】:Communications link failure

一,异常信息以及解决办法com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connectio...

2018-11-15 11:01:29 2424

转载 为什么MySQL做查询语句时,第一次会很慢,但是第二次,第三次就会变快

为什么MySQL做查询语句时,第一次会很慢,但是第二次,第三次就会变快为什么MySQL的查询事务第一次执行会很慢,第二次,第三次就会快很多呢?在国外,有个老外这么提问Hi, I have an sql query which takes 8 seconds in the first run. The next run there after takes 0.5 seconds and a...

2018-11-15 10:41:38 10758

原创 基本类型和包装类型的区别

基本类型和包装类型的区别基本类型与包装类型的异同:在Java中,一切皆对象,但八大基本类型却不是对象。声明方式的不同,基本类型无需通过new关键字来创建,而封装类型需new关键字。存储方式及位置的不同,基本类型是直接存储变量的值保存在堆栈中能高效的存取,封装类型需要通过引用指向实例,具体的实例保存在堆中。初始值的不同,封装类型的初始值为null,基本类型的的初始值视具...

2018-10-31 10:29:06 889

原创 java语言获取当前年月

Calendar calendar = Calendar.getInstance();// 获取当前年份Integer orderYear = calendar.get(Calendar.YEAR);// 获取当前月份Integer orderMonth = calendar.get(Calendar.MONTH) + 1;// 获取当前几号Integer orderDay = ca...

2018-10-30 09:19:59 531

原创 mybatis逆向功能代码

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generato...

2018-10-09 22:12:41 278

原创 Java8新特性--Lambda表达式

package lambda;import java.util.*;import java.util.stream.Collector;/** * Lambda表达式 */public class LambdaDemo02 { public static void main(String[] args) { // 如果我要给一个集合排序: 从小到大排序...

2018-10-03 12:18:07 276

原创 Java8新特性--Stream流的特性

package stream;import java.util.*;import java.util.stream.Collectors;import java.util.stream.IntStream;import java.util.stream.Stream;public class StreamDemo { public static void main(Str...

2018-10-02 04:42:22 520

原创 Java8新特性--Optional

/** * Optional:供应商的意思 * Optional 不是接口而是一个类,这是个用来防止NullPointerException异常的辅助类型 * Optional 被定义为一个简单的容器,其值可能是null或者不是null * 在Java8之前一般某个函数应该返回非空对象但是偶尔却可能返回了null,而在Java 8中,不推荐你返回null而是返回Optional * 这...

2018-09-30 16:27:14 603

原创 PAT:A1073 Scientific Notation (20 分)

PAT:A1073 Scientific Notation (20 分)Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]...

2018-09-28 09:14:04 215

原创 PAT:B1024 科学计数法 (20 分)

PAT:B1024 科学计数法 (20 分)科学计数法是科学家用来表示很大或很小的数字的一种方便的方法,其满足正则表达式 [+-][1-9].[0-9]+E[+-][0-9]+,即数字的整数部分只有 1 位,小数部分至少有 1 位,该数字及其指数部分的正负号即使对正数也必定明确给出。现以科学计数法的格式给出实数 A,请编写程序按普通数字表示法输出 A,并保证所有有效位都被保留。输入格式...

2018-09-28 09:13:03 401

原创 001——MySQL种delete,update, like, having的用法

update语法: update 表名称 set 列名称 = 值 where 列名称 = 值实例:比如有Person这张表,有字段ID, nameupdate Person set name = '小傻瓜' where ID = 1; delete语法:delete from 表名称 where 列名称 = 值实例:有表emp, 字段为ID, name,我想...

2018-09-27 19:35:44 1775

原创 PAT:A1019 General Palindromic Number (20 分)

PAT:A1019 General Palindromic Number (20 分)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All...

2018-09-26 20:54:37 370

原创 PAT:A1042 Shuffling Machine (20 分)

PAT:A1042 Shuffling Machine (20 分)Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" wher...

2018-09-19 21:24:27 342

转载 java的几种对象PO,VO,DAO,BO,POJO的区别

java的几种对象(PO,VO,DAO,BO,POJO)解释     一、PO:persistant object 持久对象,可以看成是与数据库中的表相映射的java对象。最简单的PO就是对应数据库中某个表中的一条记录,多个记录可以用PO的集合。PO中应该不包含任何对数据库的操作。   二、VO:value object值对象。通常用于业务层之间的数据传递,和PO一样也是仅仅包含数据而...

2018-09-18 10:12:53 410

原创 PAT:A1055 The World's Richest (25 分)

PAT:A1055 The World's Richest (25 分)Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this ...

2018-09-18 09:54:24 398

原创 PAT:A1058 A+B in Hogwarts (20 分)

PAT:A1058 A+B in Hogwarts (20 分)If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Gal...

2018-09-18 09:54:08 375

原创 PAT:A1059 Prime Factors (25 分)

PAT:A1059 Prime Factors (25 分)Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p​1​​​k​1​​​​×p​2​​​k​2​​​​×⋯×p​m​​​k​m​​​​.Input Sp...

2018-09-18 09:52:47 243

原创 PAT:A1061 Dating (20 分)

PAT:A1061 Dating (20 分)Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out t...

2018-09-18 09:52:27 264

原创 PAT:A1065 A+B and C (64bit) (20 分)

PAT:A1065 A+B and C (64bit) (20 分)Given three integers A, B and C in [−2​63​​,2​63​​], you are supposed to tell whether A+B>C.Input Specification:The first line of the input gives the positiv...

2018-09-18 09:52:18 475

原创 PAT:A1069 The Black Hole of Numbers (20 分)

PAT:A1069 The Black Hole of Numbers (20 分)For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing ...

2018-09-18 09:52:07 195

原创 PAT:A1070 Mooncake (25 分)

PAT:A1070 Mooncake (25 分)Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to...

2018-09-18 09:51:53 350

原创 PAT:A1075 PAT Judge (25 分)

PAT:A1075 PAT Judge (25 分)The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT.Input Specif...

2018-09-18 09:51:37 377

原创 PAT:A1078 Hashing (25 分)

PAT:A1078 Hashing (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is def...

2018-09-17 22:20:48 382

原创 PAT:A1081 Rational Sum (20 分)

PAT:A1081 Rational Sum (20 分)Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each ...

2018-09-17 22:20:38 263

原创 PAT:A1083 List Grades (25 分)

PAT:A1083 List Grades (25 分)Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those studen...

2018-09-17 22:20:28 245

原创 PAT:A1084 Broken Keyboard (20 分)

PAT:A1084 Broken Keyboard (20 分)On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given...

2018-09-17 22:20:15 251

原创 PAT:A1085 Perfect Sequence (25 分)

PAT:A1085 Perfect Sequence (25 分)Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where Mand m are the maximum and minimum...

2018-09-17 22:20:03 281

原创 PAT:A1088 Rational Arithmetic (20 分)

PAT:A1088 Rational Arithmetic (20 分)For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification...

2018-09-17 22:19:50 305

原创 PAT:A1092 To Buy or Not to Buy (20 分)

PAT:A1092 To Buy or Not to Buy (20 分)Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. Howev...

2018-09-17 22:19:36 278

原创 PAT:A1096 Consecutive Factors (20 分)

PAT:A1096 Consecutive Factors (20 分)Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are the...

2018-09-17 22:19:23 304

原创 PAT:A1104 Sum of Number Segments (20 分)

PAT:A1104 Sum of Number Segments (20 分)Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we have 10 ...

2018-09-17 22:19:05 239

原创 PAT-Advanced Level(甲级)目录

PAT-Advanced Level(甲级)目录 A1001: PAT:A1001 A+B Format (20 分)A1002: PAT:A1002 A+B for Polynomials (25 分)A1005: PAT:A1005 Spell It RightA1006: PAT:A1006 Sign In and Sign Out (25 分)A1008:  PAT...

2018-09-17 22:18:51 566

原创 PAT:A1050 String Subtraction (20 分)

PAT:A1050 String Subtraction (20 分)Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task is simply to ...

2018-09-12 17:00:13 221

原创 PAT:A1049 Counting Ones (30 分)

PAT:A1049 Counting Ones (30 分)The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example, given ...

2018-09-12 16:59:29 385

原创 PAT:A1048 Find Coins (25 分)

PAT:A1048 Find Coins (25 分)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds o...

2018-09-12 16:58:41 220

空空如也

空空如也

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

TA关注的人

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