``` refactor(db): 移除SQL语句中的public schema前缀
This commit is contained in:
@@ -13,6 +13,7 @@ import org.springframework.core.env.Environment;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
import com.openhis.web.ybmanage.config.YbServiceConfig;
|
||||
import com.openhis.administration.domain.Instrument;
|
||||
|
||||
/**
|
||||
* 启动程序
|
||||
@@ -25,6 +26,14 @@ import com.openhis.web.ybmanage.config.YbServiceConfig;
|
||||
public class OpenHisApplication {
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
// 测试 Instrument 类加载
|
||||
// try {
|
||||
// Class.forName("com.openhis.administration.domain.Instrument");
|
||||
// System.out.println("Instrument class loaded successfully");
|
||||
// } catch (ClassNotFoundException e) {
|
||||
// System.err.println("Failed to load Instrument class: " + e.getMessage());
|
||||
// }
|
||||
|
||||
ConfigurableApplicationContext application = SpringApplication.run(OpenHisApplication.class, args);
|
||||
Environment env = application.getEnvironment();
|
||||
String ip = InetAddress.getLocalHost().getHostAddress();
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
package com.openhis.web.ybmanage.config;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.ConstructorBinding;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@@ -16,10 +14,8 @@ import org.springframework.context.annotation.PropertySource;
|
||||
* @date 2025-04-11
|
||||
*/
|
||||
@Configuration
|
||||
@ConstructorBinding
|
||||
@PropertySource("classpath:properties/yb.properties")
|
||||
@ConfigurationProperties(prefix = "ybapp.config")
|
||||
@EnableConfigurationProperties
|
||||
public class YbServiceConfig {
|
||||
|
||||
private String url;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 项目相关配置
|
||||
core:
|
||||
# 名称
|
||||
name: OpenHis
|
||||
name: HEALTHLINK-HIS
|
||||
# 版本
|
||||
version: 0.0.1
|
||||
# 版权年份
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
_ _ ______ _ _______ _ _ _ _____ _ _ _ __ _ _ _____ _____
|
||||
| | | | ____| /\ | | |__ __| | | | | |_ _| \ | | |/ / | | | |_ _|/ ____|
|
||||
| |__| | |__ / \ | | | | | |__| | | | | | \| | ' /_____| |__| | | | | (___
|
||||
| __ | __| / /\ \ | | | | | __ | | | | | . ` | <______| __ | | | \___ \
|
||||
| | | | |____ / ____ \| |____| | | | | | |____ _| |_| |\ | . \ | | | |_| |_ ____) |
|
||||
|_| |_|______/_/ \_\______|_| |_| |_|______|_____|_| \_|_|\_\ |_| |_|_____|_____/
|
||||
|
||||
|
||||
:::::::: ::::::::: :::::::::: :::: ::: ::: ::: ::::::::::: ::::::::
|
||||
:+: :+: :+: :+: :+: :+:+: :+: :+: :+: :+: :+: :+:
|
||||
+:+ +:+ +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+
|
||||
+#+ +:+ +#++:++#+ +#++:++# +#+ +:+ +#+ +#++:++#++ +#+ +#++:++#++
|
||||
+#+ +#+ +#+ +#+ +#+ +#+#+# +#+ +#+ +#+ +#+
|
||||
#+# #+# #+# #+# #+# #+#+# #+# #+# #+# #+# #+#
|
||||
######## ### ########## ### #### ### ### ########### ########
|
||||
|
||||
Application Version: ${core.version}
|
||||
|
||||
Reference in New Issue
Block a user