在利用 Spring 集成 thrift 时,报错如下: 解决办法: Spring 的 contextConfigLocation 配置下的 xml文件的主要内容如下: 通过检查xml文件,为了与 handler 的 ref 相对应,应该把上面的绿色的 extractAbstractServiceH ...
分类:
编程语言 时间:
2016-04-11 18:47:42
阅读次数:
337
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft ...
分类:
其他好文 时间:
2016-04-09 12:15:14
阅读次数:
187
BIND的安装配置bind是干啥的?大家知道dns是FQDN解析成ip地址的协议,而bind这个软件就是dns协议的功能的实现。而named是bind程序的运行的进程名我们来看看bind这个程序有那些包组成吧,且都给我们提供哪些功能。 程序包:bind-libs:被bind和bind-utils包中的程序共同用到的库..
分类:
其他好文 时间:
2016-04-09 01:51:24
阅读次数:
1719
ROADS
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 12436 Accepted: 4591Description
N cities named with numbers 1 … N are connected with one-way roads. Each road has two par...
分类:
其他好文 时间:
2016-04-07 09:44:17
阅读次数:
282
Write a SQL query to find all duplicate emails in a table named Person. For example, your query should return the following for the above table: Note: ...
分类:
其他好文 时间:
2016-04-07 07:09:55
阅读次数:
140
导入MySQLdb模块的时候报错,如下>>>importMySQLdbTraceback(mostrecentcalllast):File"<stdin>",line1,in<module>ImportError:NomodulenamedMySQLdb在网上找了一个解决方法:yuminstallMySQL-python(centos系统)再次导入的时候还是报错,怀疑是版本问..
分类:
数据库 时间:
2016-04-06 19:02:23
阅读次数:
4078
python中,每个py文件被称之为模块,每个具有__init__.py文件的目录被称为包。只要模块或者包所在的目录在sys.path中,就可以使用import 模块或import 包来使用如果你要使用的模块(py文件)和当前模块在同一目录,只要import相应的文件名就好,比如在a.py中使用b. ...
分类:
编程语言 时间:
2016-04-06 11:14:40
阅读次数:
248
注意: 关闭防火墙 关闭selinux 在客户端配置vim /etc/resolv.conf的DNS 安装 yum install -y bind bind-chroot bind-utils master 配置 vim /etc/named.conf options项 listen-on port ...
分类:
系统相关 时间:
2016-04-04 17:48:47
阅读次数:
186
最近用SSH框架做项目的时候页面提交数据到后台,遇到了这个问题,百度了一下,网上的解决办法无非两种: 1.检查struts.xml ,applicationContext.xml的配置是否正确 2.配置命名空间namespa 3.检查请求路径和请求方法是否写错 试了一下,都没有解决我的问题,最后,自 ...
分类:
其他好文 时间:
2016-04-02 20:16:57
阅读次数:
316
Python安装模块出错(ImportError: No module named setuptools)解决方法 ( Python安装模块出错(ImportError: No module named setuptools)解决方法 言 Python第三方模块中一般会自带setup.py文件,在W ...
分类:
编程语言 时间:
2016-04-02 18:46:57
阅读次数:
148