In this tutorial, we will extend last Maven + Spring hello world example by adding JDBC support, to use Spring + JDBC to insert a record into a custom ...
分类:
数据库 时间:
2020-05-02 09:43:18
阅读次数:
61
springboot默认使用hikaricp连接池,如果要使用其他的连接池,如:druid,c3p0等等,需要另行配置。 首先要引入依赖 jdbc的启动器<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri ...
分类:
编程语言 时间:
2020-05-01 22:27:45
阅读次数:
87
Skill中的通用输出格式规范 Common Output Format Specifications | Format Specification | Type(s) of Argument | Prints | Example | | | | | | | %d | fixnum | 输出为十进制 ...
分类:
其他好文 时间:
2020-05-01 21:00:27
阅读次数:
119
(一)异常封装处理类用到的注解 1) @ControllerAdvice 2) @ExceptionHandler (二)异常封装处理类用到的注解 1 异常枚举类 package com.atguigu.common.exception; /** * 10: 通用 * 001 : 参数格式校验 * ...
分类:
其他好文 时间:
2020-05-01 20:55:34
阅读次数:
155
PyQt5 无边框窗口重新定义鼠标事件 #! /usr/bin/env python # -*- coding:utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtCore impor ...
分类:
其他好文 时间:
2020-05-01 20:55:07
阅读次数:
92
在使用定时器 quartz 时,其中的cron 表达式,老板表示作为开发的你能看懂外,其他的非开发同事可能看不懂,要用一个他们能看懂的方式表达出来。 还好我们的项目要求的表达式不是特别的麻烦,所以就写了一个简略的转换为中文的方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ...
分类:
其他好文 时间:
2020-05-01 17:04:01
阅读次数:
118
Mybatis Plus 时间查询无效解决方法 错误写法 正确写法 使用 日期格式化类DateFormatUtils【org.apache.commons.lang3.time.DateFormatUtils】 query.apply("UNIX_TIMESTAMP(create_time) = U ...
分类:
其他好文 时间:
2020-05-01 16:42:00
阅读次数:
633
最常见的单词。题意是给一个paragraph字符串和一个String[],包含了一些被禁的单词。请你返回paragraph中出现次数最多的没有被禁的单词。例子, Example: Input: paragraph = "Bob hit a ball, the hit BALL flew far af ...
分类:
其他好文 时间:
2020-05-01 14:44:28
阅读次数:
66
引入依赖 io.springfox springfox-swagger-common 2.7.0 io.springfox springfox-swagger-ui 2.7.0 io.springfox sp... ...
分类:
其他好文 时间:
2020-05-01 14:21:13
阅读次数:
872
为什么使用日志打印而不是使用System.out.println()? System.out是一个io流 如果使用它打印大批量数据 会占用大量的资源 spring默认使用common-logging打印日志信息 如果我们想替换掉它 使用其他的日志工具 分为如下几步 1.排除项目对common-log ...
分类:
编程语言 时间:
2020-05-01 11:12:21
阅读次数:
76