springboot打包的jar项目,不需要安装jdk环境启动
因为服务器上是JDK7,而springboot至少用JDK8才行,但是又因为是很老的项目,不是很清楚能不能换JDK8,有风险,因此选择以前项目用JDK7,而新的springboot用JDK8.
步骤一:打包好springboot项目为jar包。
步骤二:找到安装好的JDK目录,将jdk和jre一起复制出来。
步骤三:将这三个文件放到同一个文件夹下,然后新建一个bat文件。
步骤四:bat文件中写入:start jre1.8.0_144/bin/java -jar ssqxDMQ.jar (就是制定启动环境而已)
这样做的好处就是,1、不用安装多的环境,防止对以前的项目造成影响;2、需要多台服务器部署时,不用每台服务器都安装环境。
使用graalvm把springboot3.0编译成为exe可执行文件!启动速度超快!无需jdk环境!
使用graalvm把springboot3.0编译成为exe可执行文件!启动速度超快!无需jdk环境!
Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order
SpringBoot整合Redis,自定义Redis序列化以及Redis常用工具类分享
SpringBoot整合Redis,自定义Redis序列化以及Redis常用工具类分享