发表于: 2019-10-29 19:06:17

1 998


今天完成的事:


1.依据二大发过来的项目包和maven仓库下载下来运行项目。


在hosts加入:

#钱掌柜
127.0.0.1 keeper.admin.service keeper.common.service  
120.92.4.210 db.keeper


120.92.4.210 scallop.resource.center




之后加入setting.xml



在e:盘里面创建repository文件夹,用来装依赖。

之后运行server和运行jetty



运行jetty



2.疑问


看到在core的里面的service没有用到?



发现这个项目没有dao接口,并且sql语句貌似也没有用到(**dao.xml)?



感觉项目里面的dao层和service层的方法接口类,还有sql语句都被封装好了的,直接调用不用自己再去写了!在数据库连接的配置里面看到是dal的一种方法:


<datasources>
  <ds name="keeper_admin"
     driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://db.keeper:3306/keeper_admin?defaultBatchValue=1000"
     username="arthur"
     password="arthur"
     maxActive="50"
     maxIdle="50"
     maxWait="10"
     check="true"
  />
  <ds name="idCenterDS"
     driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://db.keeper:3306/resources?defaultBatchValue=1000"
     username="arthur"
     password="arthur"
     maxActive=""
     maxIdle=""
     maxWait=""
     check="true"
  />
</datasources>
<groups>
  <group name="keeper_admin" master="keeper_admin"  />
</groups>


还有这里面的这些看到在serviceImpl类里面都没有用到:


<dal>
  <list>



     <config>
        <path>article_dao.xml</path>
     </config>


     <config>
        <path>manager_dao.xml</path>
     </config>


     <config>
        <path>module_dao.xml</path>
     </config>


     <config>
        <path>role_dao.xml</path>
     </config>


     <config>
        <path>roleModule_dao.xml</path>
     </config>

     <config>
        <path>records_dao.xml</path>
     </config>

     <config>
        <path>constant_dao.xml</path>
     </config>

     <config>
        <path>contents.xml</path>
     </config>

  </list>

  <default>
     <dbStrategy name="" clasz="com.gemantic.dal.route.strategy.DefaultStrategy"> <pattern value="[0-9]$" group="keeper_admin" />
     </dbStrategy>
     <listenerClass className="" />
     <idCenterDS ds="idCenterDS" />
  </default>



返回列表 返回列表
评论

    分享到