mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
整合dubbo3.3.0, 使用nacos2.0.3作为注册中心, 升级fastjson 2.0.11->2.0.23
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
# 搜索指定包别名
|
||||
|
||||
Reference in New Issue
Block a user