在 SpringMVC 中扩展MyBatis 的 SqlSessionFactoryBean使其支持 Apache Ant 路径匹配的TypeAliases 配置方式

软件包环境: mybatis-spring-1.2.3.jar mybatis-3.3.0.jar spring webmvc 4.1.6 MyBatis 的别名配置文件入口只有能有一个,而且必须写在这个文件或者添加包的扫描路径然后使用注解,很难维护,要想web项目模块间的依赖,维护更是十分困难。所以重写了SqlSessionFactoryBean. 中间的很多代码是直接复制MyBatis 的 S...

How to setup doctrine table prefix in symfony2

首先创建一个 bundle,

php app/console generate:bundle --namespace=Vshop/Bundle/CoreBundle --format=xml

 
然后打开 CoreBundle 里面的这个 service 文件 src/Vshop/Bundle/CoreBundle/Resources/config/services.xml
我的项目配置文件进行了分割,方便以后的管理,目录结构如下......

Symfony2 开发常用命令

1.使用composer包管理工具进行安装. composer create-project symfony/framework-standard-edition 2. 创建一个Bundle php app/console generate:bundle --namespace=Themetouch/Bundle/AdminBundle --format=yml 3. 安装资源文件到web目录下 ...

解决WordPress前台后台Google API加载慢的问题

在 functions.php中加入以下代码:

 

XenServer error This operation cannot be performed because the specified virtual disk could not be found

最近在XenServer里面创建虚拟机并安装好系统之后,重启老是出现这样的错误,以前也遇见过相同的错误,但都是重装来解决问题的,今天算是找到根源了,困扰了很久的一个问题,网上也没找到相应的解决办法.错误信息:

2014/5/5 11:22:21
Error: Starting VM '10.10.0.110-jmw-backend-windows-2008' - This operation cannot be performed because the specified virtual disk could not be found

jQuery对select的一些常用操作

给定以下 select 下拉选项.

<select id="select-one" name="select">
    <option value="1" selected="selected">Google</option>
    <option value="2">Oracle</option>
    <option value="3">Microsoft</option>
    <option value="4">IBM</option>
</select>

1.获取选中 select的 text

$('select#select-one').find('option:selected').text();  //值为 Google