- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 spring 多对多表的保存
user和authority两表通过中间表user_authority来实现关联,user_authority表如下: 在spring的domain的关联代码如下: /** */ @ManyToMany(fetch = FetchType.LAZY) @JoinTable(catalog = "xmgl", name = "user_authority", joinColum
2012-12-16 10:49:59 662
原创 spring 3.2 json的输出
Spring 3.2 @RequestBody 与json的输出 输出json 使用@RequestBody注解前台,然后将需要转换的数据map映射成相应的json格式,例如: @RequestMapping(value="/findTask") public@ResponseBody Map> findTask(Integer projectid)th
2012-12-13 16:58:01 738
原创 spring 3.2 @Autowired 和@RequestMapping的理解和用法
一、@Resource与@Autowired的区别? 1.@Autowired按byType自动注入。 2.@Resource默认按byName自动注入。 但是@Resource有两个属性是比较重要的,分是name和type; 如果使用name属性,则使用byName的自动注入策略,而使用type属性时则使用byType自动注入策略; 3.@Autowired是spring自己定义的注解
2012-12-13 16:36:00 1698
原创 spring table 点击编辑按钮怎么如果该行的最后一个单元格有值就禁止跳转,无就可以跳转,这个该怎么办?
Manage //-------------------------------------列表排序------------------------------------ $(document).ready(function() { $("table").tablesorter({ headers: { 6: {
2012-12-10 15:56:05 463
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人