- 黑猴子的家:Kylin 可视化之JDBC、Zepplin
黑猴子的家
1、JDBC1)pom依赖org.apache.kylinkylin-jdbc2.5.12)编码packagecom.alex.kylin;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.PreparedStatement;importjava.sql.ResultSet;/***@author黑猴子的家*
- 【JDBC】
Martin__Liu
JavaWebjava
JDBC目录JDBC1,JDBC概述1.1JDBC概念1.2JDBC本质1.3JDBC好处2,JDBC快速入门2.1编写代码步骤2.2具体操作3,JDBCAPI详解3.1DriverManager3.2Connection3.2.1获取执行对象3.2.2事务管理3.3Statement3.3.1概述3.3.2代码实现3.4ResultSet3.4.1概述3.4.2代码实现3.5案例3.6Prepa
- SpringBoot整合数据库连接
£小羽毛
springbootjavaspring
JDBC1、数据库驱动JDBC(JavaDataBaseConnectivity),即Java数据库连接。简而言之,就是通过Java语言来操作数据库。JDBC是sun公司提供一套用于数据库操作的接口.java程序员只需要面向这套接口编程即可。不同的数据库厂商(MySQL、Oracle、DB2、SQLServer等),需要用实现类去实现这套接口,再把这些实现类打包(数据驱动jar包),并提供数据驱动
- Spring Boot2.X数据访问的三种主流姿势JDBC、MyBatis
Java架构师CAT
本文参照官方说明文档,可放心引用。创建SpringBoot项目之后,开始对Dao层配置。一、原生默认的数据库统一接口标准JDBC1、pom文件中添加JDBC依赖org.springframework.bootspring-boot-starter-jdbcmysqlmysql-connector-javaruntime2、application.yml配置文件中添加配置spring:datasou
- 六、SpringBoot 数据访问
Class鸣
1、JDBC1)启动器如果您使用spring-boot-starter-jdbc或spring-boot-starter-data-jpa“启动器”,您将自动获得依赖HikariCPHikariCP-史上最快速的连接池没有什么比这更快了。没有比这更正确的了。HikariCP是一个“零开销”的生产质量连接池。2)数据库连接spring:datasource:url:jdbc:mysql://127.
- 学习JDBC-这篇博客足矣!
陈毓辰
JAVAWEB浅入学习数据库sqljava
文章目录JDBC1,JDBC概述1.1JDBC概念.2JDBC本质1.3JDBC好处2,JDBC快速入门2.1编写代码步骤2.2具体操作3,JDBCAPI详解3.1DriverManager3.2Connection3.2.1获取执行对象3.2.2事务管理3.3Statement3.3.1概述这次先介绍到这里,后面还会介绍**ResultSet**、**PreparedStatement**和**
- SpringBoot06:整合JDBC、Druid、MyBatis
丘桔
mybatisjavamysqlspringboot
整合JDBC1、创建一个新的工程,勾选JDBCAPI和MySQLDriver2、导入web启动器3、编写yaml配置文件,连接数据库spring:datasource:username:rootpassword:123456url:jdbc:mysql://localhost:3306/mybatis?useUnicode=true&characterEncoding=utf-8&serverTi
- 2021-04-03 springboot配置多数据源
俊果果
转载文章,打个标。。。。。springboot配置数据源SpringFramework为SQL数据库提供了广泛的支持。从直接使用JdbcTemplate进行JDBC访问到完全的对象关系映射(objectrelationalmapping)技术,比如Hibernate。SpringData提供了更多级别的功能,直接从接口创建的Repository实现,并使用了约定从方法名生成查询。1、JDBC1、创
- 如何转账不被泄露个人信息?JDBC使用事物保障转账安全
恣心如懿
你知道吗?用手机支付账单是会泄露个人信息安全的,我相信大多人应该都不知道,下面来看看图片虽然被泄露个人信息这种事情不是绝对的,但是咱自己有预防肯定是没错的呀,那么如何才能学会自己也能预防种情况的发生呢?答案就是JDBC1、什么是JDBCJDBC(JavaDataBaseConnectivity,Java数据库连接)是一种用于执行SQL语句的JavaAPI,为多种关系数据库提供统一访问它由一组用Ja
- SpringBoot整合JDBC
KaiKai-G
SpringBootmysqljdbc
整合JDBC1、添加依赖或者在创建项目时候添加启动器的地方点勾选Sql-JDBCAPIorg.springframework.bootspring-boot-starter-jdbcmysqlmysql-connector-javaruntime2、直接在yaml.properties输入datasource相关配置spring:datasource:username:rootpassword:r
- 1-原始jdbc、Mybatis简介、入门案例、映射文件概述、MyBatis相应API
axinawang
mybatismybatisjava
资源:https://gitee.com/axinawang/study_mybatis.git参考:黑马程序员58期黑马2022学习路线原始jdbc1、查询2、插入3、分析原始jdbc开发存在的问题如下:①数据库连接创建、释放频繁造成系统资源浪费从而影响系统性能②sql语句在代码中硬编码,造成代码不易维护,实际应用sql变化的可能较大,sql变动需要改变java代码。③查询操作时,需要手动将结果
- 【JavaWeb】-JDBC详解、数据库连接池的认识
学Java的冬瓜
JavaWeb数据库javamysql
作者:学Java的冬瓜博客主页:☀冬瓜的博客专栏:【JavaWeb】分享:我沐浴过神河文明的光芒,它指引我成为一名战士,如有战死沙场之日,我愿化作银河里的星辰,为你们照亮前路。——《雄兵连》主要内容:认识JDBC、用JDBC连接数据库并执行SQL语句、常用API的学习、数据库连接池文章目录一、认识JDBC1、JDBC概念2、JDBC本质3、图片解析4、JDBC优点二、JDBC连接数据库并执行SQL
- 用Java操作MySQL
PerCheung
sqljava练习题数据库javamysqljdbcsql
用Java操作MySQL目录一、创建数据库1、建库2、建表二、开始准备jdbc1、导入mysql驱动jar包2、开始写jdbc代码三、那就运行吧附:最终代码DBUtilMaindb.properties一、创建数据库打开Navicat(我用的是DataGrip)的查询控制台1、建库sql代码:createschemaStudentManagement;2、建表sql代码:建立教师表createta
- JDBC和数据库连接池。
小黎的培培笔录
JAVA高级篇数据库javaJDBC
目录一、JDBC1、基本介绍2、JDBC快速入门3、获取数据库的五种方式二、API1、ResultSet2、Statement3、PreparedStatement4、JDBCAPI小结三、封装JDBCUtils完成JDBCUtils四、事务和批处理1、事务2、批处理五、数据库连接池1、传统获取Connection2、C3P0应用实例3、Druid(德鲁伊)应用实例4、Apache—DBUtils
- 详解JDBC
yumo丶
javamavenintellij-ideajava-eemysql
JDBC1、JDBC介绍根据Oracle的声明,JDBC是一个注册了商标的术语,而并非JavaDataBaseConnectivity的首字母缩写。对它的命名体现了对ODBC的致敬,后者是微软开创的标准数据库API,为C语言访问数据库提供了一套编程接口,并因此并入了SQL标准中。JDBC和ODBC都基于同一个思想:根据API编写的程序都可以与驱动管理器进行通信,而驱动管理器则通过驱动程序与实际的数
- JDBC和Javabean
LOVEHL^ˇ^
#Javajava
一、JDBC1、JDBC(JAVA数据库连接技术)能实现JAVA语言对数据库的访问及各种操作2、JDBCAPI使用JDBC访问数据库就要用JDBCAPI完成3件事:与数据库链接,返送sql语句和处理结果;工作的4个重要环节:(1).DriverManager类:依据数据库的不同,管理JDBC驱动;(2).Connection接口:负责链接数据库并担任传送数据的任务。(3).Statement接口:
- springboot入门级项目(一)学生管理系统(springboot+mybatis+bootstrap+thymeleaf)
jiyuzzz
springboot项目合集springboot后端javabootstrapmybatis
目录先看项目效果前言一、初始配置1、sqlyog中新建数据库springboot1)使用sql2)使用可视化工具sqlyog2、idea中新建空项目springboot-system1)建立空项目2)建立springboot模块3)测试springboot是否可用二、连接数据库1、引入JDBC1)idea连接数据库2)导入Mybatis及jdbc、mysql连接驱动的依赖3)在applicatio
- JDBC1
老茂在北京
JDBC介绍javadatabaseconnectivity,java数据库连接java通过该标准去操作MySQL,Oracle等数据库用到的包java.sql;javax.sql类:DriverManager注册驱动接口:Connection获取连接StatementResultSetPreparedStatementCallableStatementDateSource(javax.sql)入
- Kylin对接JDBC集成Zepplin的实现方法
本文我们来看一下Kylin如何对接JDBC,以及如何集成到Zepplin中。自定义编码可以实现更多的业务逻辑,而Zepplin是一个非常好用的编辑器工具。本文也是整个Kylin部分的最后一篇文章,关注专栏《破茧成蝶——大数据篇》,查看更多相关的内容~一、Kylin对接JDBC1、创建项目并导入依赖org.apache.kylinkylin-jdbc2.5.12、编码实现packagecom.xzw
- 数据库第四天
浅水姑娘柠檬泪_d411
一、jdbc1、执行sql语句(1)executeUpdate()执行除了select语句外的,它返回的是int类型,如果不成功则为0(但建表除外),即对insertupdatedelete语句为0不成功(2)executeQuery()只能执行select语句,它返回的是ResultSet类型(3)execute()是万能的,它返回的是boolean类型,不好进行后继操作,所以在开发中一般不用2
- 03-MySQL之JDBC【jdbc使用过程、自定义JdbcUtil类、jdbc事务、sql注入、PreparedStatement类、c3p0和Druid连接池】
ahcfl
数据库学习mysql数据库jdbc
文章目录一、JDBC1、JDBC简介2、JDBC核心API使用01)JDBC注册驱动**显式注册驱动****隐式注册驱动**02)JDBC连接数据库03)JDBC操作数据库04)JDBC数据查询小结3、自定义JDBCUtil工具类4、JDBC事务5、SQL注入6、PreparedStatement解决SQL注入7、JDBC调用存储过程(了解)8、三层开发业务分析9、执行DQL查询结果封装成集合的操
- Java如果通过jdbc操作连接oracle数据库
1、jdbc1)含义:JDBC是java语言连接数据库,JavaDateBaseConnectivity2)jdbc的本质:在编程时java程序会去连接不同的数据库,而每个数据库的底层的实现原理是不同的,所以我们所编写的程序应该是面向一套规范去编写的,这套java语言连接数据库的规范就是jdbcA、sun公司:jdbc接口是一套由Sun公司制定的一套Class文件规范,用于规范程序员;B、数据库厂
- 框架-Mybatis、Spring、SpringMVC知识整理,不断更新
weixin_42048754
Java基础总结
框架:高度抽取可重用的代码的一种设计,高度的通用性。一、JDBC1、JDBC基本概念JDBC是独立于特定数据库管理系统,通用的SQL数据库存取和操作的公共接口(一组API),定义了用来访问数据库的标准Java类库,可以更方便标准的访问数据库资源。为开发者屏蔽细节。JDBC提供用于数据库擦欧总的接口,开发者只需面向接口编程。2、数据库持久化将内存中的数据保存到硬盘中,持久化过程通过各种关系数据库完成
- Spring整合jdbc+事务+rmi
惹笑了一滩草
java框架
一、Spring整合jdbc1、坐标添加junitjunit4.12testorg.springframeworkspring-context4.3.2.RELEASEorg.aspectjaspectjweaver1.8.9mysqlmysql-connector-java5.1.39c3p0c3p00.9.1.2org.springframeworkspring-jdbc4.3.2.RELEA
- JAVA小白学习之JDBC1
lowsang
初学JDBC第一天,尝试着连接数据库,还很成功,测试了一下简单的增删改查。代码如下:有些地方还是懵逼,但大概知道什么意思,前面串连的知识点还是要多练,不然真的很容易忘。第一轮学习进行中,加油!!!publicclassUser{privateLongid;privateStringname;privateFloatscore;publicLonggetId(){returnid;}publicvo
- jmeter 数据库类型的脚本
安好_世界
1.下载mysql驱动包,mysql各个驱动版本如下:https://dev.mysql.com/downloads/file/?id=484819下载完成之后,把mysql驱动包放置到JMeter文件夹的lib目录下,然后重新启动JMeter2.测试计划添加mysql3.配置jdbc1)VaribleName:这个是变量的名字,具有唯一性,不能重复2)DatabaseURL:jdbc:mysql
- JDBC
45747681
MySQL
目录一、什么是JDBC1、JDBC概念2、JDBC本质二、管理事务1、setAutoCommit(BooleanautoCommit);设置是否自动提交事务;2、commit();提交事务3、rollback();回滚事务三、JDBCUtil类(JDBC工具类)1、没有配置文件2、使用配置文件四、调用JDBC工具类五、Statement和PreparedStatement1、Statement2、
- JDBC技术
ImaGining_
Java数据库
一、JDBC1、jdbcsun公司设计的一套调用java语言操作不同数据库的接口2、使用jdbc发送sql前提(1)数据库的ip地址(2)端口(3)数据库用户名(4)密码3、连接数据库第一种方式:(1)创建一个驱动程序对象Driverdriver=newcom.mysql.jdbc.Driver();(2)设置用户名的密码使用Property对象的setProperty方法Propertiespr
- 基础知识点复习——JDBC
农民工的博客
web开发基础知识点复习
JDBC一、什么是jdbc?(javaDataBaseConnectivity)jdbc是一种Java连接数据库的技术二、jdbc的作用(只能对数据库的数据进行访问,不能更改表结构)1.建立与数据库之间的访问连接2.将编写好的sql语句发送到数据库执行3.对数据库返回的执行结果进行处理三、如何使用jdbc1、jdbcAPIa、DriverManager类:管理JDBC驱动b、Connection接
- MyBatis学习01-前篇之JDBC
还有头发的老李
MyBatisjavamybatis
MyBatis学习01-前篇之JDBC1前言2JDBC2.1官网地址2.2简介2.3示例2.4JDBC优缺点2.4.1优点2.4.2缺点1前言在系统开发过程中,开发人员需要使用面向对象的思维实现业务逻辑,但设计数据库表或是操作数据库记录时,则需要通过关系型的思维方式考虑问题。应用程序与关系型数据库之间进行交互时,数据在对象和关系结构中的表、列、字段等之间进行转换。目前常用的关系型数据库有Mysql
- java类加载顺序
3213213333332132
java
package com.demo;
/**
* @Description 类加载顺序
* @author FuJianyong
* 2015-2-6上午11:21:37
*/
public class ClassLoaderSequence {
String s1 = "成员属性";
static String s2 = "
- Hibernate与mybitas的比较
BlueSkator
sqlHibernate框架ibatisorm
第一章 Hibernate与MyBatis
Hibernate 是当前最流行的O/R mapping框架,它出身于sf.net,现在已经成为Jboss的一部分。 Mybatis 是另外一种优秀的O/R mapping框架。目前属于apache的一个子项目。
MyBatis 参考资料官网:http:
- php多维数组排序以及实际工作中的应用
dcj3sjt126com
PHPusortuasort
自定义排序函数返回false或负数意味着第一个参数应该排在第二个参数的前面, 正数或true反之, 0相等usort不保存键名uasort 键名会保存下来uksort 排序是对键名进行的
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8&q
- DOM改变字体大小
周华华
前端
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
- c3p0的配置
g21121
c3p0
c3p0是一个开源的JDBC连接池,它实现了数据源和JNDI绑定,支持JDBC3规范和JDBC2的标准扩展。c3p0的下载地址是:http://sourceforge.net/projects/c3p0/这里可以下载到c3p0最新版本。
以在spring中配置dataSource为例:
<!-- spring加载资源文件 -->
<bean name="prope
- Java获取工程路径的几种方法
510888780
java
第一种:
File f = new File(this.getClass().getResource("/").getPath());
System.out.println(f);
结果:
C:\Documents%20and%20Settings\Administrator\workspace\projectName\bin
获取当前类的所在工程路径;
如果不加“
- 在类Unix系统下实现SSH免密码登录服务器
Harry642
免密ssh
1.客户机
(1)执行ssh-keygen -t rsa -C "
[email protected]"生成公钥,xxx为自定义大email地址
(2)执行scp ~/.ssh/id_rsa.pub root@xxxxxxxxx:/tmp将公钥拷贝到服务器上,xxx为服务器地址
(3)执行cat
- Java新手入门的30个基本概念一
aijuans
javajava 入门新手
在我们学习Java的过程中,掌握其中的基本概念对我们的学习无论是J2SE,J2EE,J2ME都是很重要的,J2SE是Java的基础,所以有必要对其中的基本概念做以归纳,以便大家在以后的学习过程中更好的理解java的精髓,在此我总结了30条基本的概念。 Java概述: 目前Java主要应用于中间件的开发(middleware)---处理客户机于服务器之间的通信技术,早期的实践证明,Java不适合
- Memcached for windows 简单介绍
antlove
javaWebwindowscachememcached
1. 安装memcached server
a. 下载memcached-1.2.6-win32-bin.zip
b. 解压缩,dos 窗口切换到 memcached.exe所在目录,运行memcached.exe -d install
c.启动memcached Server,直接在dos窗口键入 net start "memcached Server&quo
- 数据库对象的视图和索引
百合不是茶
索引oeacle数据库视图
视图
视图是从一个表或视图导出的表,也可以是从多个表或视图导出的表。视图是一个虚表,数据库不对视图所对应的数据进行实际存储,只存储视图的定义,对视图的数据进行操作时,只能将字段定义为视图,不能将具体的数据定义为视图
为什么oracle需要视图;
&
- Mockito(一) --入门篇
bijian1013
持续集成mockito单元测试
Mockito是一个针对Java的mocking框架,它与EasyMock和jMock很相似,但是通过在执行后校验什么已经被调用,它消除了对期望 行为(expectations)的需要。其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。
&nb
- 精通Oracle10编程SQL(5)SQL函数
bijian1013
oracle数据库plsql
/*
* SQL函数
*/
--数字函数
--ABS(n):返回数字n的绝对值
declare
v_abs number(6,2);
begin
v_abs:=abs(&no);
dbms_output.put_line('绝对值:'||v_abs);
end;
--ACOS(n):返回数字n的反余弦值,输入值的范围是-1~1,输出值的单位为弧度
- 【Log4j一】Log4j总体介绍
bit1129
log4j
Log4j组件:Logger、Appender、Layout
Log4j核心包含三个组件:logger、appender和layout。这三个组件协作提供日志功能:
日志的输出目标
日志的输出格式
日志的输出级别(是否抑制日志的输出)
logger继承特性
A logger is said to be an ancestor of anothe
- Java IO笔记
白糖_
java
public static void main(String[] args) throws IOException {
//输入流
InputStream in = Test.class.getResourceAsStream("/test");
InputStreamReader isr = new InputStreamReader(in);
Bu
- Docker 监控
ronin47
docker监控
目前项目内部署了docker,于是涉及到关于监控的事情,参考一些经典实例以及一些自己的想法,总结一下思路。 1、关于监控的内容 监控宿主机本身
监控宿主机本身还是比较简单的,同其他服务器监控类似,对cpu、network、io、disk等做通用的检查,这里不再细说。
额外的,因为是docker的
- java-顺时针打印图形
bylijinnan
java
一个画图程序 要求打印出:
1.int i=5;
2.1 2 3 4 5
3.16 17 18 19 6
4.15 24 25 20 7
5.14 23 22 21 8
6.13 12 11 10 9
7.
8.int i=6
9.1 2 3 4 5 6
10.20 21 22 23 24 7
11.19
- 关于iReport汉化版强制使用英文的配置方法
Kai_Ge
iReport汉化英文版
对于那些具有强迫症的工程师来说,软件汉化固然好用,但是汉化不完整却极为头疼,本方法针对iReport汉化不完整的情况,强制使用英文版,方法如下:
在 iReport 安装路径下的 etc/ireport.conf 里增加红色部分启动参数,即可变为英文版。
# ${HOME} will be replaced by user home directory accordin
- [并行计算]论宇宙的可计算性
comsci
并行计算
现在我们知道,一个涡旋系统具有并行计算能力.按照自然运动理论,这个系统也同时具有存储能力,同时具备计算和存储能力的系统,在某种条件下一般都会产生意识......
那么,这种概念让我们推论出一个结论
&nb
- 用OpenGL实现无限循环的coverflow
dai_lm
androidcoverflow
网上找了很久,都是用Gallery实现的,效果不是很满意,结果发现这个用OpenGL实现的,稍微修改了一下源码,实现了无限循环功能
源码地址:
https://github.com/jackfengji/glcoverflow
public class CoverFlowOpenGL extends GLSurfaceView implements
GLSurfaceV
- JAVA数据计算的几个解决方案1
datamachine
javaHibernate计算
老大丢过来的软件跑了10天,摸到点门道,正好跟以前攒的私房有关联,整理存档。
-----------------------------华丽的分割线-------------------------------------
数据计算层是指介于数据存储和应用程序之间,负责计算数据存储层的数据,并将计算结果返回应用程序的层次。J
&nbs
- 简单的用户授权系统,利用给user表添加一个字段标识管理员的方式
dcj3sjt126com
yii
怎么创建一个简单的(非 RBAC)用户授权系统
通过查看论坛,我发现这是一个常见的问题,所以我决定写这篇文章。
本文只包括授权系统.假设你已经知道怎么创建身份验证系统(登录)。 数据库
首先在 user 表创建一个新的字段(integer 类型),字段名 'accessLevel',它定义了用户的访问权限 扩展 CWebUser 类
在配置文件(一般为 protecte
- 未选之路
dcj3sjt126com
诗
作者:罗伯特*费罗斯特
黄色的树林里分出两条路,
可惜我不能同时去涉足,
我在那路口久久伫立,
我向着一条路极目望去,
直到它消失在丛林深处.
但我却选了另外一条路,
它荒草萋萋,十分幽寂;
显得更诱人,更美丽,
虽然在这两条小路上,
都很少留下旅人的足迹.
那天清晨落叶满地,
两条路都未见脚印痕迹.
呵,留下一条路等改日再
- Java处理15位身份证变18位
蕃薯耀
18位身份证变15位15位身份证变18位身份证转换
15位身份证变18位,18位身份证变15位
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 201
- SpringMVC4零配置--应用上下文配置【AppConfig】
hanqunfeng
springmvc4
从spring3.0开始,Spring将JavaConfig整合到核心模块,普通的POJO只需要标注@Configuration注解,就可以成为spring配置类,并通过在方法上标注@Bean注解的方式注入bean。
Xml配置和Java类配置对比如下:
applicationContext-AppConfig.xml
<!-- 激活自动代理功能 参看:
- Android中webview跟JAVASCRIPT中的交互
jackyrong
JavaScripthtmlandroid脚本
在android的应用程序中,可以直接调用webview中的javascript代码,而webview中的javascript代码,也可以去调用ANDROID应用程序(也就是JAVA部分的代码).下面举例说明之:
1 JAVASCRIPT脚本调用android程序
要在webview中,调用addJavascriptInterface(OBJ,int
- 8个最佳Web开发资源推荐
lampcy
编程Web程序员
Web开发对程序员来说是一项较为复杂的工作,程序员需要快速地满足用户需求。如今很多的在线资源可以给程序员提供帮助,比如指导手册、在线课程和一些参考资料,而且这些资源基本都是免费和适合初学者的。无论你是需要选择一门新的编程语言,或是了解最新的标准,还是需要从其他地方找到一些灵感,我们这里为你整理了一些很好的Web开发资源,帮助你更成功地进行Web开发。
这里列出10个最佳Web开发资源,它们都是受
- 架构师之面试------jdk的hashMap实现
nannan408
HashMap
1.前言。
如题。
2.详述。
(1)hashMap算法就是数组链表。数组存放的元素是键值对。jdk通过移位算法(其实也就是简单的加乘算法),如下代码来生成数组下标(生成后indexFor一下就成下标了)。
static int hash(int h)
{
h ^= (h >>> 20) ^ (h >>>
- html禁止清除input文本输入缓存
Rainbow702
html缓存input输入框change
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。
如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off";
<input type="text" autocomplete="off" n
- POJO和JavaBean的区别和联系
tjmljw
POJOjava beans
POJO 和JavaBean是我们常见的两个关键字,一般容易混淆,POJO全称是Plain Ordinary Java Object / Pure Old Java Object,中文可以翻译成:普通Java类,具有一部分getter/setter方法的那种类就可以称作POJO,但是JavaBean则比 POJO复杂很多, Java Bean 是可复用的组件,对 Java Bean 并没有严格的规
- java中单例的五种写法
liuxiaoling
java单例
/**
* 单例模式的五种写法:
* 1、懒汉
* 2、恶汉
* 3、静态内部类
* 4、枚举
* 5、双重校验锁
*/
/**
* 五、 双重校验锁,在当前的内存模型中无效
*/
class LockSingleton
{
private volatile static LockSingleton singleton;
pri