首页 > 其他 > 详细

周记 2016.5.31

时间:2016-05-31 20:50:52      阅读:173      评论:0      收藏:0      [点我收藏+]

1. 插入对象后获取主键

    <insert id="add" useGeneratedKeys="true" keyProperty="vo.id">

     如果传的是(@Param("vo") Employee vo) 形式的参数,需要使用vo.id。如果直接使用(Employee vo),则使用keyProperty="id"

     注意:执行完操作后,vo对象中将有主键值,不是返回主键值。

2. 配置多个maven profiles环境时,配置可以在eclipse 中的tomcat启动项目:

    You can activate the maven profile at the Eclipse by using the following step: -

    1).Right click at your project and select properties .

    2).At the Properties windows select Maven.

    3).At the right hand panel you will see Active Maven Profiles text box.

    4).Please enter your profile name, e.g. development or production.

     参考:http://stackoverflow.com/questions/16280858/maven-profiles-and-tomcat-in-eclipse

3. 使用maven profile实现多环境可移植构建

    http://blog.csdn.net/mhmyqn/article/details/24501281

 

 

 

 


    

 

周记 2016.5.31

原文:http://www.cnblogs.com/Jtianlin/p/5547126.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!