10.23Online云主机价格调整——环境搭建
环境准备:https://wiki.ispeco.com/pages/viewpage.action?pageId=74023378
##一、搭建
###1.到/modules下执行mvn clean install
xml
项目引入不了jar,则:maven配置私服地址:
<mirror>
<id>nexussnapshot</id>
<mirrorOf>*</mirrorOf>
<name>nexus on bjserver</name>
<url>http://192.168.105.104:8081/nexus/content/groups/public/</url>
</mirror>###2.导入项目
MonkeyKing\modules\etc\online-webview 启动模块
其他模块需要时导入即可
启动类:WebViewServer###3.修改cloudmanagementsetting.properties
MonkeyKing\modules\base-modules\cloudmgn-web\WEB-INF\cloudmanagementsetting.properties a) 取消注释httpHost=http://127.0.0.1:8099
b) 修改数据库连接为本地MySQL
(以下为举例,native数据库需手动创建)
1)、dataSource.jdbcUrl=jdbc:mysql://localhost:3306/onlinegishost?useUnicode=true&characterEncoding=UTF-8
2)、 dataSource.user=root
3)、 dataSource.password=
注意:数据库版本5.7左右,8以上版本不行###3.跳过一些验证——Cloudmanagementsetting.properties配置以下参数来跳过验证
setting.needVerify=false
verifysetting.needVerify=false
jdCloudsetting.needVerify=false4.配置idea启动环境
OLSetting
D:\supermap\20191023online_price\ideaworksapce\MonkeyKing\modules\base-modules\cloudmgn-web\WEB-INF\cloudmanagementsetting.properties###5、将cloudLicenseBean.xml配置导入GisHostHandler.xml中

###6、将cloudlicense-rest.xml中rest接口列表添加到gishost-rest.xml

###7、启动
a) modules/etc/online-webview工程里的WebViewServer.java b) 控制台打印ok后表示启动成功!服务地址为http://127.0.0.1:8099
D:\supermap\20191023online_price\ideaworksapce\MonkeyKing\modules\etc\online-webview\src\test\java\com\isupermap\web\WebViewServer.java
###8.注意事项
需要导入哪些工程?
理论上导入需要的工程即可。
调试环境中的资源文件加载的不是cloudmgn-ui工程下的,而是iportal-all的jar包内的?cloudmgn-ui工程下的resources/staticFiles目录存在与iportal-all中同路径同名的文件,调试环境下有可能加载到iportal-all的同名文件。此时可将该目录整个复制到online-webview的src/test/resources目录下,重新编译运行即可正常。