diff --git a/jsowell-admin/pom.xml b/jsowell-admin/pom.xml index 052d409ea..f50a9c149 100644 --- a/jsowell-admin/pom.xml +++ b/jsowell-admin/pom.xml @@ -113,6 +113,25 @@ test + + com.jsowell + charge-common-api + + + + org.apache.commons + commons-lang3 + + + + org.apache.dubbo + dubbo + + + org.apache.dubbo + dubbo-registry-nacos + + @@ -158,4 +177,4 @@ ${project.artifactId} - \ No newline at end of file + diff --git a/jsowell-admin/src/main/java/com/jsowell/JsowellApplication.java b/jsowell-admin/src/main/java/com/jsowell/JsowellApplication.java index 5acc5cce4..80ae93391 100644 --- a/jsowell-admin/src/main/java/com/jsowell/JsowellApplication.java +++ b/jsowell-admin/src/main/java/com/jsowell/JsowellApplication.java @@ -1,5 +1,6 @@ package com.jsowell; +import org.apache.dubbo.config.spring.context.annotation.EnableDubbo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; @@ -11,6 +12,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; */ @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) +@EnableDubbo public class JsowellApplication { public static void main(String[] args) { diff --git a/jsowell-admin/src/main/resources/application.yml b/jsowell-admin/src/main/resources/application.yml index d2f6547e7..b0dd33f94 100644 --- a/jsowell-admin/src/main/resources/application.yml +++ b/jsowell-admin/src/main/resources/application.yml @@ -71,6 +71,19 @@ spring: # 热部署开关 enabled: true +# dubbo配置 +dubbo: + application: + name: jsowell-service + qosEnable: false + registry: + address: nacos://192.168.2.2:8848 + username: nacos + password: nacos + protocol: + name: dubbo + port: -1 + # MyBatis配置 mybatis: # 搜索指定包别名 diff --git a/pom.xml b/pom.xml index 034b5ccc7..0ba5adf88 100644 --- a/pom.xml +++ b/pom.xml @@ -3,14 +3,14 @@ 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"> 4.0.0 - + com.jsowell jsowell-charger-web 1.0.0 jsowell 万车充运营管理平台 - + 1.0.0 UTF-8 @@ -23,7 +23,8 @@ 2.3.2 2.2.2 1.4.3 - 2.0.11 + + 2.0.23 6.2.2 2.11.0 1.4 @@ -42,8 +43,11 @@ 2.2.3 3.1.87 1.8.0 + + 3.3.0 + 2.0.3 - + @@ -336,6 +340,54 @@ ${protostuff.version} + + com.jsowell + charge-common-api + 1.0.0 + + + + + org.apache.dubbo + dubbo-dependencies-bom + ${dubbo.version} + pom + import + + + org.apache.dubbo + dubbo-spring-boot-starter + ${dubbo.version} + + + org.apache.dubbo + dubbo-registry-nacos + ${dubbo.version} + + + org.apache.dubbo + dubbo + ${dubbo.version} + + + org.springframework + spring + + + javax.servlet + servlet-api + + + log4j + log4j + + + + + com.alibaba.nacos + nacos-client + ${nacos-client.version} + @@ -395,4 +447,4 @@ - \ No newline at end of file +