12.19iMobile管理页面添加(后端搭建)
http://127.0.0.1:8099/manager/cloud/orders
http://127.0.0.1:8099/manager/cloud/cloudlicenses/add
管理员账号:supermapoltest@163.com
密码:ispeco##一、环境配置
1.cloudmgn-web
properties
1. WEB-INFO/web.xml 没有CloudLicenseHandler.xml(看)
2. WEB-INFO/handlers/GisHostHandler.xml 下添加
打开注释
<import resource="./CloudManagementBeans/cloudLicenseBean.xml" />
<ref bean="iLicenseDBUpgrader" />
3. <import resource="./CloudManagementBeans/cloudlicense-rest.xml" /> 下的
<value>classpath:com/isupermap/cloudmanagement/jerseyapplications/ilicense-cloudLicense.xml</value>
<value>classpath:com/isupermap/cloudmanagement/jerseyapplications/ilicense-cloudLicenseManagement.xml</value>
<value>classpath:com/isupermap/cloudmanagement/jerseyapplications/ilicense-user.xml</value>
<value>classpath:com/isupermap/cloudmanagement/jerseyapplications/ilicense-mobile.xml</value>
copy to
gishost-rest.xml
3. cloudmanagementsetting.properties下的ilicenseDataSource连接池配置好
# ilicense#
ilicenseDataSource.jdbcDriver=org.mariadb.jdbc.Driver
ilicenseDataSource.jdbcUrl=jdbc:mysql://39.100.90.131:8306/ilicense?useUnicode=true&characterEncoding=UTF-8
ilicenseDataSource.user=root
ilicenseDataSource.password=123456
ilicenseDataSource.maxPoolSize=2
ilicenseDataSource.initialPoolSize=1
ilicenseDataSource.minPoolSize=1
ilicenseDataSource.maxIdleTime=300
ilicenseDataSource.checkoutTimeout=0
ilicenseDataSource.ssoUserUrl=https://sso.supermap.com/v101/cas/ua/getinfo##二、项目
###1.添加云许可(数据库)
CloudLicenseManagementResource.java 下的addCloudLicenses 新增许可接口
LicenseComponentImpl.java 许可实现
License.java 许可类
592865
问题:
前端选择option,数据库没10i和iMobile的,需要数据库新增
Product product = productDao.selectProduct(license.getProductId());2.我的允许可分配
LicenseComponentImpl.java
更新:
_license 表 status 1未分配,2已分配;allocationUserId 分配的用户id
插入:
_license_status_log 日志表
没有事务