目录
环境介绍:
SpringBoot:
国产中间件适配:
国产数据库适配:
SpringBoot部署方式:
VUE:
VUE部署方式:
部署结果:
环境介绍:
金蝶中间件V9
达梦数据库V8
SpringBoot:
目前最新版本:2.6.7
测试结果版本:4.2.1 (稳定)
主要原因是 金蝶中间件V9 影响
swagger 推荐使用swagger22.9.2
国产中间件适配:
需要修改:
部署方式: 改为war 部署
<packaging>war</packaging>
剔除 spring-boot-starter-web 中的 tomcat
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId></exclusion></exclusions></dependency>
在 tomcat 改为 provided,方便本地开发测试。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><scope>provided</scope></dependency>
启动适配
public class ServletInitializer extends SpringBootServletInitializer {@Overrideprotected SpringApplicationBuilder configure(SpringApplicationBuilder application) {return application.sources(SpringbootEdseApplication.class);}}
国产数据库适配:
使用mybatis-plus3.5.1
<dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>3.5.1</version></dependency>
SpringBoot部署方式:
将 war 包放入\applications 下 启动即可,无需其他修改。
启动结果:
基本上运行无阻!
VUE:
部署需要使用:/XXX需要在根目录下添加:WEB-INF/web.xmlVUE部署方式:
直接放入\applications下使用即可,未发现其他问题。
部署结果:
后续待更新!
更多部署方式参考:
Linux部署nginx+vue、Springboot_千寻的华尔兹的博客-CSDN博客Linux部署nginx+vue、Springboot部署前端nginx+vue安装nginxpcre安装zlib安装openssl安装nginx安装nginx测试配置nginx和nginx的使用nginx命令启动查看命令帮助验证配置文件状态编辑配置文件重新载入配置文件重启 Nginx停止 Nginx通过系统进程关闭配置nginx部署后端SpringBoot防火墙(firewall)1. firewalld的基本使用2.配置firewalld-cmd3.信任级别,通过Zone的值指定4.firewall开启/qq_22537681/article/details/109182186
如果觉得《SpringBoot VUE基于国产环境适配开发(国产系统 国产数据库 国产中间件)》对你有帮助,请点赞、收藏,并留下你的观点哦!