Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8484be9

Browse files
Java:MultiDataSource 升级 APIJSON, apijson-framework, apijson-column 分别至 4.8.3, 4.8.3, 1.1.5,升级 mysql-connector-java 至 8.0.27
1 parent 53260e5 commit 8484be9

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed
6.8 KB
Binary file not shown.
66.2 KB
Binary file not shown.
-317 KB
Binary file not shown.
320 KB
Binary file not shown.

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<dependency>
7575
<groupId>mysql</groupId>
7676
<artifactId>mysql-connector-java</artifactId>
77-
<version>8.0.22</version>
77+
<version>8.0.27</version>
7878
</dependency>
7979
<dependency>
8080
<groupId>org.postgresql</groupId>

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/DemoApplication.java‎

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,24 @@
7070
public class DemoApplication implements ApplicationContextAware, WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> {
7171
private static final String TAG = "DemoApplication";
7272

73+
public static void main(String[] args) throws Exception {
74+
SpringApplication.run(DemoApplication.class, args);
75+
76+
// FIXME 不要开放给项目组后端之外的任何人使用 UnitAuto(强制登录鉴权)!!!如果不需要单元测试则移除相关代码或 unitauto.Log.DEBUG = false;
77+
// 上线生产环境前改为 false,可不输出 APIJSONORM 的日志 以及 SQLException 的原始(敏感)信息
78+
unitauto.Log.DEBUG = Log.DEBUG = true;
79+
APIJSONParser.IS_PRINT_BIG_LOG = true;
80+
APIJSONApplication.init();
81+
System.out.println("\n\n<<<<<<<<< 本 Demo 在 resources/static 内置了 APIAuto,Chrome/Firefox 打开 http://localhost:8080 即可调试(端口号根据项目配置而定) ^_^ >>>>>>>>>\n");
82+
}
83+
84+
// SpringBoot 2.x 自定义端口方式
85+
@Override
86+
public void customize(ConfigurableServletWebServerFactory server) {
87+
server.setPort(8080);
88+
}
89+
90+
7391
static {
7492
// APIJSON 配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
7593

@@ -240,22 +258,6 @@ public boolean apply(Object object, String name, Object value) {
240258
}
241259

242260

243-
public static void main(String[] args) throws Exception {
244-
SpringApplication.run(DemoApplication.class, args);
245-
246-
// FIXME 不要开放给项目组后端之外的任何人使用 UnitAuto(强制登录鉴权)!!!如果不需要单元测试则移除相关代码或 unitauto.Log.DEBUG = false;
247-
// 上线生产环境前改为 false,可不输出 APIJSONORM 的日志 以及 SQLException 的原始(敏感)信息
248-
unitauto.Log.DEBUG = Log.DEBUG = true;
249-
APIJSONParser.IS_PRINT_BIG_LOG = true;
250-
APIJSONApplication.init();
251-
System.out.println("\n\n<<<<<<<<< 本 Demo 在 resources/static 内置了 APIAuto,Chrome/Firefox 打开 http://localhost:8080 即可调试(端口号根据项目配置而定) ^_^ >>>>>>>>>\n");
252-
}
253-
254-
// SpringBoot 2.x 自定义端口方式
255-
@Override
256-
public void customize(ConfigurableServletWebServerFactory server) {
257-
server.setPort(8080);
258-
}
259261

260262
// 全局 ApplicationContext 实例,方便 getBean 拿到 Spring/SpringBoot 注入的类实例
261263
private static ApplicationContext APPLICATION_CONTEXT;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /