内容分类管理的编写

1.创建前台接受的数据

创建ContentCategoryService 和 ContentCategoryServiceImpl 
进行返回List<EasyUITreeNode>的编写
    <dubbo:service interface="com.matteo.content.service.ContentCategoryService" ref="contentCategoryService" timeout="600000"
/>

2.依旧是后台的web界面进行接收

shopping_manager_web进行数据的接受

pom的依赖

    <dependency>
    <artifactId>shopping_content_interface</artifactId>
    <groupId>com.shopping</groupId>
    <version>1.0-SNAPSHOT</version>
</dependency>

spring的配置文件

    <dubbo:reference interface="com.matteo.content.service.ContentCategoryService" id="contentCategoryService" />

3.添加需要主键返回:

将selectKey放在insert之后,通过LAST_INSERT_ID() 获得刚插入的自动增长的id的值。
改完之后需要将dao进行重新的install
  <selectKey keyProperty="id" resultType="long" order="AFTER">
    SELECT LAST_INSERT_ID();
  </selectKey>

results matching ""

    No results matching ""