• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

liutaoryutou

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2013年11月5日

String Mybatis 多数据源配置

摘要: 做项目用到了多数据源的配置,有时候不用就忘记了,自己做下备份以防止忘记。在配置文件中: 把数据源映射不同的Mapper 最后最重要的:public abstract class BaseIbatisOauth3Dao extends BaseIbatis3Dao { public void setSqlSessionFactory2(SqlSessionFactory sqlSessionFactory) { super.setSqlSessionFactory(sqlSessionFactory); ... 阅读全文

posted @ 2013-11-05 18:16 liutaoryutou 阅读(286) 评论(0) 推荐(0)

2013年10月30日

Maven 从svn下载后,pom.xml报错解决方案

摘要: Multiple annotations found at this line:- Execution default-testResources of goal org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to collect d... 阅读全文

posted @ 2013-10-30 18:00 liutaoryutou 阅读(3664) 评论(0) 推荐(0)

2013年10月11日

JAVA 如何把request请求的参数,快速放到model对象中

摘要: 因为项目需要,需要从request中读取大量的参数。因为本人过懒,所以写了个方法把request参数,直接放到对应的类中。参数String str="aa,bb,cc";ParameterUtil util = new ParameterUtil();XXX model = util.getPara(request, str, XXX.class);XXX model类下面是具体的实现类public T getPara(HttpServletRequest request,String para, Class modelclass) throws BusinessExcep 阅读全文

posted @ 2013-10-11 14:49 liutaoryutou 阅读(3450) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3