id属性中必须有值且在整个项目中(至少是受spring管理的模块配置信息中)必须唯一。
name属性则比较宽松,可以在name属性中为某个类指定多个名称,每个名称用逗号或分号隔开
那么我现在就把这个属性配置在applicationContext.xml的bean里。
<!-- 配置action -->
<bean name="/login" class="cn.lb.web
在struts-config.xml中添加
<controller>
<set-property property="processorClass" value="org.sprin
foud是被跟随的人
uid是跟随的人
我跟随了谁 uid=我的uid
谁跟随了我 我是被跟随的人 fouid=我的uid
类似聊天表
web.xml配置struts和spring
hql的createQuery()检索设置参数默认从0开始
//更新为""串
update taxi_driver_info set wechat = '' where driverno = '123';
//更新为null
update taxi_driver_info set wechat = null where driverno = '123';
@Transactional
//@Transaction一定要在类定义的前面写,否则要报错
public class EmployerServiceImp implements EmployerServiceInter {
public SessionFactory sessio
<!-- 启用事务注解 -->
<tx:annotat
<bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">