错误优化
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<timezone>2018-05-22 16:06:06</timezone>
|
<timezone>2018-05-22 16:06:06</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
@@ -77,12 +77,12 @@
|
|||||||
<version>${zyplayer.doc.version}</version>
|
<version>${zyplayer.doc.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<zyplayer.doc.version<version>1.0.2</version>zyplayer.doc.version>
|
<zyplayer.doc.version>1.0.2</zyplayer.doc.version>
|
||||||
<!-- 打包跳过单元测试 -->
|
<!-- 打包跳过单元测试 -->
|
||||||
<skipTests>true</skipTests>
|
<skipTests>true</skipTests>
|
||||||
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir>
|
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir>
|
||||||
@@ -233,4 +233,4 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -111,16 +111,21 @@ public class DubboController {
|
|||||||
@PostMapping(value = "/reloadService")
|
@PostMapping(value = "/reloadService")
|
||||||
public DocResponseJson loadService() throws Exception {
|
public DocResponseJson loadService() throws Exception {
|
||||||
List<DubboInfo> providerList;
|
List<DubboInfo> providerList;
|
||||||
if (StringUtils.isBlank(serviceZookeeperUrl)) {
|
try {
|
||||||
if (StringUtils.isBlank(nacosUrl) || StringUtils.isBlank(nacosService)) {
|
if (StringUtils.isBlank(serviceZookeeperUrl)) {
|
||||||
return DocResponseJson.warn("zyplayer.doc.dubbo.zookeeper.url、zyplayer.doc.dubbo.nacos.url 参数均未配置");
|
if (StringUtils.isBlank(nacosUrl) || StringUtils.isBlank(nacosService)) {
|
||||||
|
return DocResponseJson.warn("zyplayer.doc.dubbo.zookeeper.url、zyplayer.doc.dubbo.nacos.url 参数均未配置");
|
||||||
|
}
|
||||||
|
logger.info("zookeeper参数未配置,使用nacos配置");
|
||||||
|
providerList = this.getDubboInfoByNacos();
|
||||||
|
} else {
|
||||||
|
providerList = this.getDubboInfoByZookeeper();
|
||||||
}
|
}
|
||||||
logger.info("zookeeper参数未配置,使用nacos配置");
|
mgDubboStorageService.put(StorageKeys.DUBBO_SERVICE_LIST, JSON.toJSONString(providerList));
|
||||||
providerList = this.getDubboInfoByNacos();
|
} catch (Exception e) {
|
||||||
} else {
|
e.printStackTrace();
|
||||||
providerList = this.getDubboInfoByZookeeper();
|
return DocResponseJson.warn("获取服务列表失败");
|
||||||
}
|
}
|
||||||
mgDubboStorageService.put(StorageKeys.DUBBO_SERVICE_LIST, JSON.toJSONString(providerList));
|
|
||||||
return DocResponseJson.ok();
|
return DocResponseJson.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,13 +118,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.zyplayer</groupId>
|
<groupId>com.zyplayer</groupId>
|
||||||
<artifactId>zyplayer-doc-swagger</artifactId>
|
<artifactId>zyplayer-doc-swagger</artifactId>
|
||||||
<version>${zyplayer.doc.swagger.version}</version>
|
<version>${zyplayer.doc.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--zyplayer-doc-swagger-->
|
<!--zyplayer-doc-swagger-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.zyplayer</groupId>
|
<groupId>com.zyplayer</groupId>
|
||||||
<artifactId>doc-console-page</artifactId>
|
<artifactId>console-page</artifactId>
|
||||||
<version>${zyplayer.doc.swagger.version}</version>
|
<version>${zyplayer.doc.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--swagger-bootstrap-ui-->
|
<!--swagger-bootstrap-ui-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.zyplayer</groupId>
|
<groupId>com.zyplayer</groupId>
|
||||||
<artifactId>doc-console-page</artifactId>
|
<artifactId>console-page</artifactId>
|
||||||
<version>1.0.2</version>
|
<version>1.0.2</version>
|
||||||
<description>管理页面前端</description>
|
<description>管理页面前端</description>
|
||||||
<url>https://gitee.com/zyplayer/zyplayer-doc</url>
|
<url>https://gitee.com/zyplayer/zyplayer-doc</url>
|
||||||
@@ -20,19 +20,19 @@
|
|||||||
<timezone>2018-05-22 16:06:06</timezone>
|
<timezone>2018-05-22 16:06:06</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<zyplayer.doc.version<version>1.0.2</version>zyplayer.doc.version>
|
<zyplayer.doc.version>1.0.2</zyplayer.doc.version>
|
||||||
<!-- 打包跳过单元测试 -->
|
<!-- 打包跳过单元测试 -->
|
||||||
<skipTests>true</skipTests>
|
<skipTests>true</skipTests>
|
||||||
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir>
|
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<developerConnection>scm:git@git.oschina.net:zyplayer/zyplayer-doc.git</developerConnection>
|
<developerConnection>scm:git@git.oschina.net:zyplayer/zyplayer-doc.git</developerConnection>
|
||||||
<url>git@git.oschina.net:zyplayer/zyplayer-doc.git</url>
|
<url>git@git.oschina.net:zyplayer/zyplayer-doc.git</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>snapshots</id>
|
<id>snapshots</id>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
|
||||||
<groupId>com.zyplayer</groupId>
|
<groupId>com.zyplayer</groupId>
|
||||||
<artifactId>doc-page</artifactId>
|
<artifactId>zyplayer-doc-page</artifactId>
|
||||||
<version>1.0.2</version>
|
<version>1.0.2</version>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
@@ -13,4 +13,4 @@
|
|||||||
<module>console-page</module>
|
<module>console-page</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -73,9 +73,9 @@
|
|||||||
支持多项目同时展示,多种文档目录的展示方案,多种自定义配置,满足各种使用习惯。
|
支持多项目同时展示,多种文档目录的展示方案,多种自定义配置,满足各种使用习惯。
|
||||||
本项目是完全从头写的,所以有任何属性未解析到、UI上有何建议都能及时处理得到。
|
本项目是完全从头写的,所以有任何属性未解析到、UI上有何建议都能及时处理得到。
|
||||||
使用中您有任何的意见和建议都可到源码地址处反馈哦!<br/>
|
使用中您有任何的意见和建议都可到源码地址处反馈哦!<br/>
|
||||||
源码地址:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc-swagger</a>(还有其他很多功能哦),
|
源码地址:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc-swagger</a>,
|
||||||
前端框架:<a target="_blank" href="http://zui.sexy">zui</a>(很不错),
|
前端框架:<a target="_blank" href="http://zui.sexy">zui</a>,
|
||||||
我的网站:<a target="_blank" href="http://kongjianzhou.com">空间轴</a>、<a target="_blank" href="http://zyplayer.com">自由发挥</a>(都已很久未维护)<br/>
|
我的网站:<a target="_blank" href="http://kongjianzhou.com">空间轴</a>、<a target="_blank" href="http://zyplayer.com">自由发挥</a><br/>
|
||||||
<div id="upgradeInfoBox"></div>
|
<div id="upgradeInfoBox"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<label><input type="radio" name="forceRewriteDomain" value="1" v-model="forceRewriteDomain">是</label>
|
<label><input type="radio" name="forceRewriteDomain" value="1" v-model="forceRewriteDomain">是</label>
|
||||||
<label><input type="radio" name="forceRewriteDomain" value="0" v-model="forceRewriteDomain">否</label>
|
<label><input type="radio" name="forceRewriteDomain" value="0" v-model="forceRewriteDomain">否</label>
|
||||||
</td>
|
</td>
|
||||||
<td>文档在本地,想调试线上接口就可以勾选此参数,“在线调试”处的请求地址强制改为:“文档地址管理”处配置的重写域名+接口地址</td>
|
<td>文档在本地,想调试线上接口就可以勾选此参数,这样“在线调试”处的请求地址就会被强制改为:“文档地址管理”处配置的重写域名+接口地址</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted: function(){
|
mounted: function(){
|
||||||
getStorage(cacheKeys.userSettings, function(data){
|
getStorage(cacheKeys.userSettings, function(data){
|
||||||
|
|||||||
Reference in New Issue
Block a user