摘要: 写JavaBean的时候,写getter和setter方法是一件简单而无趣的活儿。利用Eclipse的code(源代码)功能可以自动生成JavaBean的getter和setter方法,这样可以使得我们不必要再将宝贵的时间花在写getter和setter方法上。 操作步骤: 定义一个class,比如 阅读全文
posted @ 2017-04-20 15:48 guangfengli 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 1、@controller 控制器(注入服务) 2、@service 服务(注入dao) 3、@repository dao(实现dao访问) 4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>) @Component 阅读全文
posted @ 2017-04-20 15:32 guangfengli 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 是什么: 1、Java面向对象,对象有方法和属性,那么就需要对象实例来调用方法和属性(即实例化); 2、凡是有方法或属性的类都需要实例化,这样才能具象化去使用这些方法和属性; 3、规律:凡是子类及带有方法或属性的类都要加上注册Bean到Spring IoC的注解; 4、把Bean理解为类的代理或代言 阅读全文
posted @ 2017-04-20 15:28 guangfengli 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 相同点: 1. @Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上。 不同点: 2、@Autowired默认按类型装配(这个注解是属业spring的),默认情况下必须要求依赖对象必须存在,如果要允许null 值,可以设置它的required属 阅读全文
posted @ 2017-04-20 15:24 guangfengli 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1. 安装Python 注意: 现阶段最新的发布版本TensorFlow1.0.1只能支持python3.5.x的版本,没错是“只能”,3.4以下的版本不支持很好理解,但是3.6也不支持。 链接https://www.python.org/ftp/python/3.5.3/python-3.5.3- 阅读全文
posted @ 2017-04-10 23:21 guangfengli 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: hibernate的数据库连接信息是从配置文件中加载的。 Hibernate的配置文件有两种形式:一种是XML格式的文件,一种是properties属性文件。 一)hibernate.cfg.xml XML格式的配置文件中,除了基本的Hibernate配置信息,还可以指定具体的持久化类的映射文件,这 阅读全文
posted @ 2017-01-21 00:03 guangfengli 阅读(164) 评论(0) 推荐(0) 编辑
摘要: c:>mysql -u root mysql>set password for 'root'@'localhost'=password('newpasswd'); mysql>set password for 'root'@'%'=password('newpasswd'); //本条可选 阅读全文
posted @ 2017-01-19 22:59 guangfengli 阅读(163) 评论(0) 推荐(0) 编辑
摘要: In order to use a profiler properly, you need to understand how the data was collected and the limitations of the tool. The CLR Profiler uses a specia 阅读全文
posted @ 2017-01-17 22:02 guangfengli 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Commercial: ANTS Memory Profiler:http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/ ANTS Performance Profiler:http://www.red-ga 阅读全文
posted @ 2017-01-17 21:30 guangfengli 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Btrace 下载 安装? Btrace 是什么? Btrace 解决什么问题? Btrace 例子? Btrace 实现原理? Btrace 优势? Btrace 限制? 阅读全文
posted @ 2017-01-12 21:42 guangfengli 阅读(143) 评论(0) 推荐(0) 编辑