Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
3846beba
Commit
3846beba
authored
Aug 13, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化Pom引入
parent
b1ccd7a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
38 deletions
+5
-38
discovery-plugin-admin-center/pom.xml
+5
-0
discovery-plugin-framework/pom.xml
+0
-5
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/context/PluginErrorHandler.java
+0
-33
No files found.
discovery-plugin-admin-center/pom.xml
View file @
3846beba
...
...
@@ -21,6 +21,11 @@
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-webmvc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
...
...
discovery-plugin-framework/pom.xml
View file @
3846beba
...
...
@@ -36,11 +36,6 @@
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-webmvc
</artifactId>
</dependency>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
eventbus-aop-starter
</artifactId>
</dependency>
...
...
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/context/PluginErrorHandler.java
deleted
100644 → 0
View file @
b1ccd7a7
package
com
.
nepxion
.
discovery
.
plugin
.
framework
.
context
;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import
java.io.IOException
;
import
java.io.InputStream
;
import
org.apache.commons.io.IOUtils
;
import
org.springframework.http.client.ClientHttpResponse
;
import
org.springframework.web.client.DefaultResponseErrorHandler
;
public
class
PluginErrorHandler
extends
DefaultResponseErrorHandler
{
private
String
cause
;
@Override
public
void
handleError
(
ClientHttpResponse
response
)
throws
IOException
{
// 这里绝对不能关闭InputStream
InputStream
inputStream
=
response
.
getBody
();
cause
=
IOUtils
.
toString
(
inputStream
,
"UTF-8"
);
}
public
String
getCause
()
{
return
cause
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment