摘要:
application.yml里的配置如下,注意要使用jdbc-url,否则会出现jdbcUrl is required with driverClassName: spring: datasource: test1: driver-class-name: xxx jdbc-url: xxx use 阅读全文
摘要:
开发中使用RestTemplate来进行访问,设置请求头的方法: 方法一:单独设置 public class TestRestTemplate { @Autowired private RestTemplate restTemplate; public void postObject(String 阅读全文
摘要:
本文采用的jar包是通过idea下maven打包的springboot项目。 写这个shell脚本是为了在linux下方便启动jar包时不用输入太多的shell命令,将启动脚本的一系列shell命令整理到一个xxx.sh中,每次启动此.sh文件就可以 linux下直接创建xxx.sh文件 vim s 阅读全文