@Test public void demo5() throws SQLException, FileNotFoundException{ System.setProperty("jdbc:drivers", "com.mysql.jdbc.Driver"); Properties prop = new Properties(); prop.put("user", "root");
原创 1天前
26阅读
import List;import com.mysql.jdbc.Driver;/** * 自定义数据库连接池 * @author S
原创 1天前
18阅读
PreparedStatement prepareStatement = connection.prepareStatement("insert into user (id,username,password,birthday) values (3,'Lily',789,?)");注意:字符串要打单引号
原创 1天前
23阅读
书写路径时"\",需要转义"\\"单斜杠全部变成双斜杠
原创 1天前
15阅读
1:Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/exam", "root", "321");2:Connection connection
原创 1天前
21阅读
问题提的很好,搜了一把终于知道了大概的原因,首先纠正提问者的提问,贴出来的第一段代码属于匿名内部类,第二端代码不
1:Class.forName("com.mysql.jdbc.Driver");2:DriverManager.registerDriver(new Driver());3:System.setProperty("jdbc:drivers", "com.mysql.jdbc.Driver");
原创 1天前
0阅读
SpringBoot + Shiro 接口使用异延迟结果(DeferredResult)出现报错:UnavailableSecurityManagerException。快来看看我的解决思路。
原创 1天前
0阅读
淘汰算法之LFU(The Least Frequently Used)最不经常使用。
原创 1天前
17阅读
前端开发中 防重复提交 是一个很头疼又绕不开的话题。 现在我们定义一个指令 v-preventReClick 让它专门来干这件事。
原创 1天前
30阅读
tomcat8.5.30之后请求中含有特殊字符,导致请求被服务端拦截的解决办法。
原创 1天前
27阅读
Executors 之 newSingleThreadScheduledExecutor 构建定时任务/延时任务.
原创 1天前
0阅读
随着函数式编程的风靡,在代码中 forEach 的影子随处可见,在这里跟我来一起看一下它的使用技巧吧。
原创 1天前
15阅读
众所周知,Windows 下渲染的原生滚动条并不是那么好看。既然我们知道 CSS 相当于化妆品,那么我们怎么通过 CSS 让滚动条小姐姐变个妆呢?
原创 1天前
0阅读
【CSS】改变滚动条样式,给滚动条小姐姐化个妆
JDK的动态代理 这个词大佬们经常挂在嘴边,可我却是云里雾里。这几个字分开倒是都认识,组合在一起就不明白它是表达的什么意思了
原创 1天前
20阅读
Java中String类为什么要设计成final?
原创 1天前
19阅读
【面试突击】Java中String类为什么要设计成final?
Executors 之 newSingleThreadScheduledExecutor 应用场景一:部门领导 ping ip 判断同学们是否已到工位,就问你这招狠不狠?这应用场景都能想出来,还有谁?
原创 1天前
0阅读
jeecg-boot bugfix 周记 No.36(2020年)。
原创 精选 1天前
162阅读
【JeecgBoot】bugfix No.36(2020年)
完美解决2018版本下载插件无法联网的问题.
原创 1天前
22阅读
使用nginx搭建文件服务镜像站.
原创 1天前
21阅读
【Nginx】使用nginx搭建文件服务镜像站
教你如何解决Vue项目做内网穿透后访问 Invalid Host header.
DNS
原创 1天前
17阅读
正常情况下我们点击控制台的链接,都能直接跳转到浏览器并打开该链接,但是总用一些同学因为配置的原因会出现奇奇
原创 1天前
24阅读
【IDE】IntelliJ IDEA 设置默认浏览器
CentOS7.4 同步时间,了解一下?
原创 1天前
19阅读
Java中的SPI初探。
原创 1天前
22阅读
HttpServletRequest 获取路径的 API 傻傻分不清?
原创 1天前
21阅读
Junit单元测试简单入门。
原创 1天前
20阅读
亲身经历!记一次解决gitlab-ce 11.9.8 迁移后,部分操作服务端响应500
原创 1天前
22阅读
最近复习一下Spring集成Quartz.跑了一个demo特此记录package task;import org.springframework.context.annotation.Lazy;import org.spring
原创 1天前
16阅读
package com.djcps.server.address.area.service;import com.djcps.server.address.area.model.Area;import org.junit.Test;import org.springframew
原创 1天前
22阅读
package Mytest.model.test;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnectios HttpBaidu
原创 1天前
23阅读