Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibiz-boot-starters
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibiz-boot-starters
提交
eef5af5d
提交
eef5af5d
编写于
8月 16, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
151 release
上级
7dc811c4
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
8 行删除
+15
-8
pom.xml
ibiz-boot-starter-parent/pom.xml
+3
-3
pom.xml
ibiz-boot-starter/pom.xml
+2
-2
BootServiceHub.java
...zsys/central/plugin/boot/core/runtime/BootServiceHub.java
+7
-0
pom.xml
pom.xml
+3
-3
未找到文件。
ibiz-boot-starter-parent/pom.xml
浏览文件 @
eef5af5d
...
@@ -14,15 +14,15 @@
...
@@ -14,15 +14,15 @@
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<version>
2.4.0-
SNAPSHOT
</version>
<version>
2.4.0-
151
</version>
<name>
iBiz Boot Starter Parent
</name>
<name>
iBiz Boot Starter Parent
</name>
<description>
iBiz Boot Starter Parent
</description>
<description>
iBiz Boot Starter Parent
</description>
<properties>
<properties>
<revision>
2.4.0-
SNAPSHOT
</revision>
<revision>
2.4.0-
151
</revision>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<ibiz-boot-starter.version>
2.4.0-
SNAPSHOT
</ibiz-boot-starter.version>
<ibiz-boot-starter.version>
2.4.0-
151
</ibiz-boot-starter.version>
<ibiz.cloud.version>
8.1.0.151
</ibiz.cloud.version>
<ibiz.cloud.version>
8.1.0.151
</ibiz.cloud.version>
<spring-cloud.version>
2020.0.1
</spring-cloud.version>
<spring-cloud.version>
2020.0.1
</spring-cloud.version>
<spring-cloud-starter-bootstrap.version>
3.0.1
</spring-cloud-starter-bootstrap.version>
<spring-cloud-starter-bootstrap.version>
3.0.1
</spring-cloud-starter-bootstrap.version>
...
...
ibiz-boot-starter/pom.xml
浏览文件 @
eef5af5d
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
ibiz-boot-starter
</artifactId>
<artifactId>
ibiz-boot-starter
</artifactId>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<version>
2.4.0-
SNAPSHOT
</version>
<version>
2.4.0-
151
</version>
<name>
iBiz Boot Starter
</name>
<name>
iBiz Boot Starter
</name>
<description>
iBiz Boot Starter
</description>
<description>
iBiz Boot Starter
</description>
<parent>
<parent>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<version>
2.4.0-
SNAPSHOT
</version>
<version>
2.4.0-
151
</version>
<relativePath>
../ibiz-boot-starter-parent/pom.xml
</relativePath>
<relativePath>
../ibiz-boot-starter-parent/pom.xml
</relativePath>
</parent>
</parent>
...
...
ibiz-boot-starter/src/main/java/net/ibizsys/central/plugin/boot/core/runtime/BootServiceHub.java
浏览文件 @
eef5af5d
...
@@ -3,9 +3,12 @@ package net.ibizsys.central.plugin.boot.core.runtime;
...
@@ -3,9 +3,12 @@ package net.ibizsys.central.plugin.boot.core.runtime;
import
com.alibaba.cloud.nacos.NacosDiscoveryProperties
;
import
com.alibaba.cloud.nacos.NacosDiscoveryProperties
;
import
com.baomidou.dynamic.datasource.creator.DataSourceCreator
;
import
com.baomidou.dynamic.datasource.creator.DataSourceCreator
;
import
com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DataSourceProperty
;
import
com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DataSourceProperty
;
import
com.zaxxer.hikari.HikariDataSource
;
import
net.ibizsys.central.cloud.core.ServiceHubBase
;
import
net.ibizsys.central.cloud.core.ServiceHubBase
;
import
net.ibizsys.central.cloud.core.service.ISysServiceAPIDocAdapter
;
import
net.ibizsys.central.cloud.core.service.ISysServiceAPIDocAdapter
;
import
net.ibizsys.central.cloud.core.util.domain.DataSource
;
import
net.ibizsys.central.cloud.core.util.domain.DataSource
;
import
net.ibizsys.runtime.util.DBTypes
;
import
net.ibizsys.runtime.util.EntityUtils
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationArguments
;
...
@@ -16,6 +19,7 @@ import org.springframework.context.ApplicationContextAware;
...
@@ -16,6 +19,7 @@ import org.springframework.context.ApplicationContextAware;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
;
import
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
...
@@ -72,6 +76,7 @@ public class BootServiceHub extends ServiceHubBase implements ApplicationContext
...
@@ -72,6 +76,7 @@ public class BootServiceHub extends ServiceHubBase implements ApplicationContext
}
}
protected
void
registerDataSource
(
DataSource
ds
)
throws
Exception
{
protected
void
registerDataSource
(
DataSource
ds
)
throws
Exception
{
DataSourceProperty
dataSourceProperty
=
new
DataSourceProperty
();
DataSourceProperty
dataSourceProperty
=
new
DataSourceProperty
();
...
@@ -90,10 +95,12 @@ public class BootServiceHub extends ServiceHubBase implements ApplicationContext
...
@@ -90,10 +95,12 @@ public class BootServiceHub extends ServiceHubBase implements ApplicationContext
log
.
error
(
ex
);
log
.
error
(
ex
);
}
}
this
.
setDataSource
(
ds
.
getDataSourceId
(),
dataSource
);
this
.
setDataSource
(
ds
.
getDataSourceId
(),
dataSource
);
}
}
@Override
@Override
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
this
.
install
();
this
.
install
();
...
...
pom.xml
浏览文件 @
eef5af5d
...
@@ -8,20 +8,20 @@
...
@@ -8,20 +8,20 @@
<parent>
<parent>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<artifactId>
ibiz-boot-starter-parent
</artifactId>
<version>
2.4.0-
SNAPSHOT
</version>
<version>
2.4.0-
151
</version>
<relativePath>
ibiz-boot-starter-parent/pom.xml
</relativePath>
<relativePath>
ibiz-boot-starter-parent/pom.xml
</relativePath>
</parent>
</parent>
<groupId>
net.ibizsys.plugin
</groupId>
<groupId>
net.ibizsys.plugin
</groupId>
<artifactId>
ibiz-boot-starters
</artifactId>
<artifactId>
ibiz-boot-starters
</artifactId>
<version>
2.4.0-
SNAPSHOT
</version>
<version>
2.4.0-
151
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<name>
ibiz-boot-starters
</name>
<name>
ibiz-boot-starters
</name>
<description>
ibiz-boot-starters
</description>
<description>
ibiz-boot-starters
</description>
<properties>
<properties>
<revision>
2.4.0-
SNAPSHOT
</revision>
<revision>
2.4.0-
151
</revision>
</properties>
</properties>
<modules>
<modules>
<module>
ibiz-boot-starter-parent
</module>
<module>
ibiz-boot-starter-parent
</module>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录