我们在没有用注解写spring配置文件的时候,会在spring配置文件中定义Dao层的bean,这样我们在service层中,写setDao方法,就可以直接通过接口调用Dao层,用了注解写法后,在配置文件中不用再写Dao层的bean,只需要在Dao实现类中加入@Repositorypublic Cl ...
分类:
编程语言 时间:
2016-04-08 11:37:22
阅读次数:
129
redis报错: [6644] 02 Apr 23:11:58.976 # Creating Server TCP listening socket *:6379: bind: No such file or directory 的解决方案如下按顺序输入如下命令就可以连接成功 1. redis-cl ...
分类:
其他好文 时间:
2016-04-03 00:22:21
阅读次数:
407
一、安装 pip install suds 二、日志 import logging logging.basicConfig(level=logging.INFO) logging.getLogger(“suds.client”).setLevel(logging.DEBUG) 三、基本方法,创建cl ...
分类:
Web程序 时间:
2016-03-30 16:20:53
阅读次数:
304
SELECTtable_nameAS"Tables",round(((data_length+index_length)/1024/1024),2)"SizeinMB"FROMinformation_schema.TABLESWHEREtable_schema=‘zabbix‘ORDERBY(data_length+index_length)DESClimit10;(查看mysql数据库表大小)一、转换分区表ALTERTABLEhistoryPARTITIONBYrange(cl..
分类:
数据库 时间:
2016-03-16 19:22:31
阅读次数:
351
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl
分类:
其他好文 时间:
2016-03-11 12:09:31
阅读次数:
152
这是一篇浅显实用 易记 易理解的关于runtime的解读。 Runtime 中的方法主要以五个单词开头——class(类)、object(实例)、method(方法)、propert(属性)、ivar(成员变量) 它们代表了方法的操作对象,如class开头的 OBJC_EXPORT Ivar *cl
分类:
其他好文 时间:
2016-03-10 12:47:19
阅读次数:
154
1,设置Java环境 rpm -ivh jdk-8u73-linux-x64.rpm添加环境变量到启动文件vi /etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_73 export PATH=$JAVA_HOME/bin:$PATH export CL
分类:
其他好文 时间:
2016-03-09 15:32:12
阅读次数:
138
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { cl
分类:
Web程序 时间:
2016-03-05 20:10:44
阅读次数:
213
@Transactional spring 事务注解 默认遇到throw new RuntimeException("...");会回滚需要捕获的throw new Exception("...");不会回滚// 指定回滚@Transactional(rollbackFor=Exception.cl
分类:
其他好文 时间:
2016-03-05 19:00:23
阅读次数:
142