
xml
梦里断魂
人之所以能,是因为相信能。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring mybatis insert foreach
insert into table addTime,empId,activityId,flag valuse <foreach collection="list" item="item" index="index" separator="," > (#{item.addTime},#{item.empId},#{item.activityId},#{item.flag})原创 2015-08-22 09:14:13 · 1161 阅读 · 0 评论 -
设置session的存活时间
<!-- 设置SESSION存活时间 --> <session-config> <session-timeout>30</session-timeout> </session-config>原创 2015-09-23 10:41:26 · 1862 阅读 · 0 评论 -
定时器的配置
Java代码package com.otrue.webservice.action; @Service public class APPTimeTask extends TimerTask{ @Override public void run() { // TODO Auto-generated method stub try {原创 2015-09-23 11:29:09 · 352 阅读 · 0 评论 -
根据List mybatis批量查询List结果
mapper 文件@Repository public interface UserMapper { List<String> queryNamesByIds(Map<String, Object> userIdsParam); }@Named public class UserServiceImpl implements UserService { @Override转载 2015-09-09 18:21:08 · 1035 阅读 · 0 评论 -
Mybatis 动态传如表名 字段名 的解决办法
要实现动态传入表名、列名,需要做如下修改1.添加属性statementType="STATEMENT" 2.同时sql里的属有变量取值都改成${xxxx},而不是#{xxx} <delete id="deleteDataBaseTable" parameterType="java.util.List" statementType="STATEMENT"> <foreach collectio原创 2015-12-26 13:50:31 · 1602 阅读 · 1 评论 -
mysql 批量更新 update foreach
<update id="updateThreadreturnList" parameterType="java.util.List"> update tb_thread set isDelete=0 where threadId in ( <foreach collection="list" item="item" index="index" open原创 2015-12-24 17:06:19 · 13209 阅读 · 0 评论 -
xml 引入properties文件
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="locations"> <list> <value>classpath:common.properties原创 2016-09-26 10:02:46 · 2875 阅读 · 0 评论 -
java 加载XML配置
public static ClassPathXmlApplicationContext context; public static void main(String[] args) throws Exception { context = new ClassPathXmlApplicationContext(new String[]{"applicationContext-redis.x原创 2016-09-26 10:04:51 · 448 阅读 · 0 评论 -
pom.xml详解
什么是pom? pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以及其他所有的项目相关因素。 快速察看: <project> <modelVersion>4.0.0</modelVersion> <!--maven2.0必须是这样写,现在是转载 2016-11-27 11:20:15 · 1007 阅读 · 0 评论