-
项目分层: 界面 -> service业务层 -> dao层( DBHelper) -> database
-
DBHelper封装 static 静态块加载驱动 关闭 更新: 动态数组. 类型... 数组名
事务处理: ACID try{ con.setAutoCommit(false); 多条SQL操作 con.commit(); }catch( Exception ex){ con.rollback();
}finally{ 关闭 }查询: List<Map<String,String>>
-
属性文件:
- 注册表 ***
- 环境变量
- 系统的属性文件 *****
- 分布式的配置中心
Properties. 单例
-
加密: MD5, SHA 指纹 -> 去重 彩虹表 加盐
-
枚举 enum : 系统中出现的一些常量值 ,
-
日志:
- 级别: level 重要性 ALL< DEBUG < INFO < WARN < ERROR < FATAL
- 方向: appender
ConsoleAppender
FileAppender
DailyRollingFileAppender
RollingFileAppender
保存到哪里
Target: System.out.println() - 格式: layout PatternLayout %d{yyyy-MM-dd HH:mm:ss} %m%n %n -> \n %d{yyyy-MM-dd HH:mm:ss} %m -> message 信息
%m 输出代码中指定的消息 %p 输出优先级,即DEBUG,INFO,WARN,ERROR,FATAL %r 输出自应用启动到输出该log信息耗费的毫秒数 %c 输出所属的类目,通常就是所在类的全名 %t 输出产生该日志事件的线程名 %n 输出一个回车换行符,Windows平台为“rn”,Unix平台为“n” %d 输出日志时间点的日期或时间,默认格式为ISO8601,也可以在其后指定格式,比如:%d{yyyy MMM dd HH:mm:ss,SSS},输出类似:2002年10月18日 22:10:28,921 %l 输出日志事件的发生位置,包括类目名、发生的线程,以及在代码中的行数。
- 日志对象 protected final static Logger log = Logger.getLogger( TestMain.class ); log.info() debug() error() warn() fatal()
-
sql注入攻击: jdbc的代码中用了Statement对象结合sql语句拼装.
- 了解你的系统: 先让你的程序 出错,读报错信息. 防: 不要让异常信息全部显示前台. 应该用日志.
- 预编译语句对象,支持占位符.
-
oracle 中的索引 与视图. 索引: B+树索引 视图.
-
加载资源文件 /// 类的字节码 获取类加载器 ( eclipse 类路径 bin | IDEA target) this.getClass().getClassLoader().getResourceAsStream("db.properties");
newbankconsole's Introduction
newbankconsole's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.