I am a Solivagant
Lofter    Posts     新文章     文章管理     新日记     日记管理

05 2018 档案

摘要:使用Spring面向切面编程 1.介绍 AOP是OOP的补充,提供了另一种关于程序结构的思路. OOP的模块化的关键单位是 类 . AOP的则是aspect切面. AOP 将程序的逻辑分成独立的块(叫做concern 重心,关注点). AOP是用来增加跨切重心(cross-cutting conce 阅读全文
posted @ 2018-05-30 22:14 宛如ZZ 阅读(157) 评论(0) 推荐(0)
摘要:自动扫描: 在<beans>标签内, <context:annotation-config />允许使用注解 <context:component-scan base-package="test.sample.entity"></context:component-scan> 扫描test/samp 阅读全文
posted @ 2018-05-30 21:46 宛如ZZ 阅读(131) 评论(0) 推荐(0)
摘要:ref:https://www.tutorialspoint.com/spring/spring_autowiring_byname.htm project:Working Set: Spring>Project:Spring02>的 entity>Person/User 和ApplicationC 阅读全文
posted @ 2018-05-30 17:13 宛如ZZ 阅读(781) 评论(0) 推荐(0)
摘要:1. 该类在package org.springframework.context.support包下. 该包在4.0.1中封装在spring-context-***.jar中. 其无参构造函数的文档注释: * Create a new ClassPathXmlApplicationContext, 阅读全文
posted @ 2018-05-30 15:37 宛如ZZ 阅读(184) 评论(0) 推荐(0)
摘要:事务 事务管理 事务管理器 Transaction Transactions TransactionManager 阅读全文
posted @ 2018-05-30 14:42 宛如ZZ 阅读(3257) 评论(0) 推荐(0)
摘要:在mybatis中,SqlSessionFactory由SqlSessionFactoryBuilder创建. 在mybatis-spring中,是由SqlSessionFactoryBean创建的. 1.创建 注意SqlSessionFactoryBean实现了Spring的FactoryBean 阅读全文
posted @ 2018-05-30 11:02 宛如ZZ 阅读(10398) 评论(0) 推荐(1)
摘要:<url-pattern>/*</url-pattern> The /* on a servlet overrides all other servlets, including all servlets provided by the servletcontainer such as the de 阅读全文
posted @ 2018-05-30 00:09 宛如ZZ 阅读(181) 评论(0) 推荐(0)
摘要:MySQL: String Driver="com.mysql.jdbc.Driver"; //驱动程序 String URL="jdbc:mysql://localhost:3306/db_name"; //连接的URL,db_name为数据库名 String Username="username 阅读全文
posted @ 2018-05-29 22:37 宛如ZZ 阅读(430) 评论(0) 推荐(0)
摘要:utf-8 时变化长度的编码,储存一个code point 需要1~4个字节. 然而,mysql的utf8只存储最多3个字节per code point. 所以,utf8字符集不能存储所有的unicode code points. 只能从0x000 to 0xFFFF(叫做Basic Multili 阅读全文
posted @ 2018-05-26 19:43 宛如ZZ 阅读(941) 评论(0) 推荐(0)
摘要:1. 使用强密码加密授权(推荐) 8.0提供的心的授权方式,采用SHA256基础的密码加密方法. 但是需要新版本的connector,目前和Connector/J最新的时8.0 目前8.0的连接器和使用libmysqlclient8.0的社区驱动都支持这种新方法. 如果客户端和应用程序不能更新来支持 阅读全文
posted @ 2018-05-26 18:21 宛如ZZ 阅读(13950) 评论(0) 推荐(1)
摘要:字面意思: a loop at the back of a boot,used to pull it on. 穿鞋子脚后跟的环,叫做拔靴带. boot·strap ˈbo͞otˌstrap/ noun noun: bootstrap; plural noun: bootstraps 1. a loo 阅读全文
posted @ 2018-05-26 18:16 宛如ZZ 阅读(421) 评论(0) 推荐(0)
摘要:Batch /baCH/ 1.a quantity of goods produced at one time. 翻译称批量,但并不算特别合适. 通常和批处理有关. 阅读全文
posted @ 2018-05-26 18:16 宛如ZZ 阅读(620) 评论(0) 推荐(0)
摘要:MySQL Shell 是一个高级的命令行客户端以及代码编辑器for Mysql. 除了SQL,MySQL Shell也提供脚本能力 for JS and Python. When MySQL shell is conected to the MySQL server throught the X 阅读全文
posted @ 2018-05-26 18:11 宛如ZZ 阅读(598) 评论(0) 推荐(0)
摘要:在MySQL中,schema和database是同义词. CREATE SCHEMA和CREATE DATABASE是等效的. 但是其他的数据库产品(几乎所有数据库)有所不同.在oracle数据库产品中,schema是database的一部分. 表示the tables and other obje 阅读全文
posted @ 2018-05-26 16:40 宛如ZZ 阅读(26985) 评论(0) 推荐(1)
摘要:The SqlSession instance is the most powerful in MyBatis. It is where you'll find all of the methods to execute statements, commit or rollback transact 阅读全文
posted @ 2018-05-23 22:57 宛如ZZ 阅读(297) 评论(0) 推荐(0)
摘要:The class path is the path taht Java Runtime Environment(JRE) searches for classes and other resource files. Synopsis: The class serach path (classpat 阅读全文
posted @ 2018-05-18 10:21 宛如ZZ 阅读(189) 评论(0) 推荐(0)
摘要:5.1 Developer Guide 1. MysQL为由Java语言编程的客户端程序提供连接:MySQL Connector/J,这是一个实现Java Database Connectivity(JDBC) API的驱动. 2.MySQL Connector/J 是一个JDBC Type 4驱动 阅读全文
posted @ 2018-05-17 17:09 宛如ZZ 阅读(13135) 评论(0) 推荐(0)
摘要:Physical(Raw) and Logical Backup: 1.Physical backups consist of raw copies of the directories and files that store database contents. This type of bac 阅读全文
posted @ 2018-05-17 15:15 宛如ZZ 阅读(252) 评论(0) 推荐(0)
摘要:mysqld is the MySQL server. configuring the server. The mysql server, mysqld,has many command options and system variables that can be set at startop 阅读全文
posted @ 2018-05-17 14:08 宛如ZZ 阅读(177) 评论(0) 推荐(0)
摘要:The MySQL server can operate in different SQL modes, and can apply these modes differently for different clients. depending on the value of the sql_mo 阅读全文
posted @ 2018-05-17 09:36 宛如ZZ 阅读(142) 评论(0) 推荐(0)
摘要:1. mysqld-The MySQL Server mysqld,also known as mysql server, is the main program that does most of the work in a MySQL installation. MySQL server man 阅读全文
posted @ 2018-05-16 19:26 宛如ZZ 阅读(127) 评论(0) 推荐(0)
摘要:Most MySQL programs can read startup option files(sometimes called configuration files). Option files provide a convenient way to specify commonly use 阅读全文
posted @ 2018-05-16 18:37 宛如ZZ 阅读(281) 评论(0) 推荐(0)
摘要:Some option are 'boolean' and control behavior that can be turned on or off. --column-names option determines whether or not to display a row of colum 阅读全文
posted @ 2018-05-16 16:28 宛如ZZ 阅读(120) 评论(0) 推荐(0)
摘要:1.installation 2.setup environment variables add %/MySQL Server/bin to path. then restart cmd/powershell 3.invoking mysql programs command interpreter 阅读全文
posted @ 2018-05-16 15:56 宛如ZZ 阅读(209) 评论(0) 推荐(0)
摘要:Develop a web application that should have following features. Once we have our basic application ready, we can move on to add other features. Design 阅读全文
posted @ 2018-05-16 09:28 宛如ZZ 阅读(89) 评论(0) 推荐(0)
摘要:Servlet API support for custom Exception and Error Handler servlets that we can congiure in deployment descriptor. The whole purpose of these ervlets 阅读全文
posted @ 2018-05-15 17:27 宛如ZZ 阅读(168) 评论(0) 推荐(0)
摘要:毛詩序:「《大東》,刺亂也。東國困於役,而傷於財,譚大夫作是詩以告病焉。」 有饛簋飧,有捄棘匕。周道如砥,其直如矢。 君子所履,小人所視。睠言顧之,潸焉出涕。 小東大東,杼柚其空。糾糾葛屨,可以履霜。 佻佻公子,行彼周行。既往既來,使我心疚。 有冽氿泉,無浸穫薪。契契寤歎,哀我憚人。 薪是穫薪,尚可 阅读全文
posted @ 2018-05-15 14:54 宛如ZZ 阅读(146) 评论(0) 推荐(0)
摘要:冥,莫歷反.是爲冪音也. 有时间查下两者自行演变. 行,下孟反,xeng,介于今之多音hang,xing之间. 廢,音發, 忕shi也.古做忄犬. 蓋古音發fa,吠fei, 忕shi,廢fei音近. 阅读全文
posted @ 2018-05-15 13:51 宛如ZZ 阅读(297) 评论(0) 推荐(0)
摘要:1.没有器质性变化才能叫脑震荡,如果有就叫脑挫伤或裂伤。 所以脑震荡你拍片子是看不出来的... 2. 鸟类的泄殖腔孔 https://pic3.zhimg.com/80/v2 bbe5b82e529424d9a97ebb60391b95d0_hd.jpg 3.视错觉 我们的大脑构建的知觉系统让我们对 阅读全文
posted @ 2018-05-14 10:07 宛如ZZ 阅读(186) 评论(0) 推荐(0)
摘要:1. Popularity is the slutty little cousin of prestige (威望,声望) . 2. A man becomes a critic when he cannot be an artist, the same way that a man becomes 阅读全文
posted @ 2018-05-14 09:11 宛如ZZ 阅读(101) 评论(0) 推荐(0)
摘要:1. 当我对过了四六级的国内大学生或者混国内互联网和华人圈的留学生不屑一顾的时候,可曾考虑过那些四六级没有过或者辛辛苦苦才过的人? 2. 当我用繁体用文言的时候是否也是一种装逼呢?虽然我没有此意,我只是在需要涉及古文字的地方使用繁体.而且用文言会简单些表达自己的东西. 3. 当我乱买一大堆东西天天拆 阅读全文
posted @ 2018-05-13 22:47 宛如ZZ 阅读(113) 评论(0) 推荐(0)
摘要:因为害怕自己并非明珠而不敢刻苦琢磨,又因为有几分相信自己是明珠,而不能与瓦砾碌碌为伍,遂逐渐远离世间,疏避人群,结果在内心不断地用愤懑和羞怒饲育着自己懦弱的自尊心。世上每个人都是驯兽师,而那匹猛兽,就是每人各自的性情。对我而言,猛兽就是这自大的羞耻心了。老虎正是它。我折损自己,施苦妻儿,伤害朋友。末 阅读全文
posted @ 2018-05-13 22:26 宛如ZZ 阅读(291) 评论(0) 推荐(0)
摘要:抽象类不能使用new operator创建实例. 抽象方法无需实现即可定义.其实现由子类完成. 包含抽象方法的类必须被定义成抽象的. 抽象类的构造函数可以定义成protected,因为它只会被子类使用. 当你对具体子类进行实例化的时候,他的超类构造函数被调用来初始化超类中定义的数据域. 阅读全文
posted @ 2018-05-11 17:28 宛如ZZ 阅读(180) 评论(0) 推荐(0)
摘要:调用方法时,如何决定调用对象还是其父类的方法呢? 在JVM中,根据实际类型(actual type)调用.而非声明类型(declared type),如果实际类型的类中没有该方法,就会沿着inheritance chain向上追溯. 直到找到同名方法为止,这就叫做dynamic binding(动态 阅读全文
posted @ 2018-05-11 16:09 宛如ZZ 阅读(357) 评论(0) 推荐(0)
摘要:A subclass inherits accessible date fields and methods from its superclass. Does it inherit constructors? Can the supperclass's constructors be invoke 阅读全文
posted @ 2018-05-11 15:08 宛如ZZ 阅读(528) 评论(0) 推荐(0)
摘要:说文无悦字,应该是在北宋之后分化的. 説文:說,釋也.懌也. 說悅兌稅乃古今字之引申. 執:漢語拼音:zhí 粵拼zap1 簡體字:执 異體字:𡙕|𡘺 埶:異體字:蓺 yì 古同“艺”。 shì 古通“势” 原文:【唐韻】魚祭切【集韻】【韻會】【正韻】倪制切,同藝。【說文】種也。 又六埶,才埶, 阅读全文
posted @ 2018-05-09 14:46 宛如ZZ 阅读(157) 评论(0) 推荐(0)
摘要:1.In servlet 3.0 we have new feature annotations to replace XML.也就是说应该尽量使用annotations 2. Servlet is an API that provides many interfaces and classes t 阅读全文
posted @ 2018-05-07 08:35 宛如ZZ 阅读(137) 评论(0) 推荐(0)
摘要:1.Java EE vs Java SE They are just official SDK,when using IDE,it's ok to just install jdk/jre. "ee和se只是开发环境的不同,jdk只有一个。" 2.Eclipse Java EE vs Eclipse 阅读全文
posted @ 2018-05-06 09:21 宛如ZZ 阅读(189) 评论(0) 推荐(0)