Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
architecture
/
glsx-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e481a83
authored
Apr 03, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
升级dubbo版本
1 parent
76aacb69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
15 deletions
glsx-archetype-parent/rest-admin-archetype/rest-admin/pom.xml
glsx-archetype-parent/rest-admin-archetype/rest-admin/src/main/java/cn/com/glsx/admin/modules/service/DubboDemoService.java
rest-archetype-framework-build/pom.xml
rest-archetype-framework/rest-admin-dubbo/pom.xml
glsx-archetype-parent/rest-admin-archetype/rest-admin/pom.xml
View file @
4e481a8
...
@@ -47,11 +47,11 @@
...
@@ -47,11 +47,11 @@
<version>
2.0.0-SNAPSHOT
</version>
<version>
2.0.0-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- dubbo api -->
<!-- dubbo api -->
<!-- <dependency>--
>
<dependency
>
<!-- <groupId>cn.com.glsx.scrm</groupId>--
>
<groupId>
cn.com.glsx.scrm
</groupId
>
<!-- <artifactId>rpc-scrm-proxy-api</artifactId>--
>
<artifactId>
rpc-scrm-proxy-api
</artifactId
>
<!-- <version>3.7.0-SNAPSHOT</version>--
>
<version>
3.7.0-SNAPSHOT
</version
>
<!-- </dependency>--
>
</dependency
>
</dependencies>
</dependencies>
<build>
<build>
...
...
glsx-archetype-parent/rest-admin-archetype/rest-admin/src/main/java/cn/com/glsx/admin/modules/service/DubboDemoService.java
View file @
4e481a8
package
cn
.
com
.
glsx
.
admin
.
modules
.
service
;
package
cn
.
com
.
glsx
.
admin
.
modules
.
service
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.scrm.proxy.model.ScreenshotRequest
;
import
cn.com.glsx.scrm.proxy.model.ScreenshotResponse
;
import
cn.com.glsx.scrm.proxy.remote.ScreenshotRemote
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.annotation.DubboReference
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
@Slf4j
@Slf4j
@Service
@Service
public
class
DubboDemoService
{
public
class
DubboDemoService
{
//
@DubboReference
@DubboReference
//
private ScreenshotRemote screenshotRemote;
private
ScreenshotRemote
screenshotRemote
;
public
String
screenshot
(
String
url
)
{
public
String
screenshot
(
String
url
)
{
// RpcResponse<ScreenshotResponse> response = screenshotRemote.screenshot(ScreenshotRequest.builder().url(url).build());
RpcResponse
<
ScreenshotResponse
>
response
=
screenshotRemote
.
screenshot
(
ScreenshotRequest
.
builder
().
url
(
url
).
build
());
// return response.getResult().getUrl();
return
response
.
getResult
().
getUrl
();
return
""
;
}
}
}
}
rest-archetype-framework-build/pom.xml
View file @
4e481a8
...
@@ -28,11 +28,11 @@
...
@@ -28,11 +28,11 @@
<revision>
2.0.0-SNAPSHOT
</revision>
<revision>
2.0.0-SNAPSHOT
</revision>
<!-- 本地发布服务器 -->
<!-- 本地发布服务器 -->
<local.nexus.snapshots.url>
http://127.0.0.1:8081/repository/maven-snapshots/
</local.nexus.snapshots.url
>
<!-- <local.nexus.snapshots.url>http://127.0.0.1:8081/repository/maven-snapshots/</local.nexus.snapshots.url>--
>
<local.nexus.releases.url>
http://127.0.0.1:8081/repository/maven-releases/
</local.nexus.releases.url
>
<!-- <local.nexus.releases.url>http://127.0.0.1:8081/repository/maven-releases/</local.nexus.releases.url>--
>
<!-- <local.nexus.snapshots.url>http://192.168.3.233/nexus/content/repositories/snapshots/</local.nexus.snapshots.url>--
>
<local.nexus.snapshots.url>
http://192.168.3.233/nexus/content/repositories/snapshots/
</local.nexus.snapshots.url
>
<!-- <local.nexus.releases.url>http://192.168.3.233/nexus/content/repositories/releases/</local.nexus.releases.url>--
>
<local.nexus.releases.url>
http://192.168.3.233/nexus/content/repositories/releases/
</local.nexus.releases.url
>
</properties>
</properties>
<distributionManagement>
<distributionManagement>
...
...
rest-archetype-framework/rest-admin-dubbo/pom.xml
View file @
4e481a8
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-dubbo
</artifactId>
<artifactId>
spring-cloud-starter-dubbo
</artifactId>
<version>
2.2.
1
.RELEASE
</version>
<version>
2.2.
6
.RELEASE
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment