flyway是一个数据库版本管理工具,集成进springboot后,每次系统升级启动时自动执行sql语句升级数据库,避免手动操作数据库。 1.maven引入依赖 <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core< ...
分类:
数据库 时间:
2021-04-15 12:02:41
阅读次数:
0
项目 新建 Spring Starter Project,编辑 pom.xml 文件,引入依赖: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" ...
分类:
编程语言 时间:
2021-04-14 12:33:52
阅读次数:
0
1、在vue.config.js进行如下配置: iconPath:{ favicon32:'favicon.ico', favicon16:'favicon.ico', appleTouchIcon:'favicon.ico', maskIcon:'favicon.ico', msTilelmage ...
分类:
其他好文 时间:
2021-04-14 12:30:18
阅读次数:
0
SpringMVC概述 SpringMVC通过Spring实现web模块,简化web开发 SpringMVC通过一套MVC注解,让POJO(Plain Ordinary Java Object)成为处理请求的控制器,而无需实现任何接口支持REST风格的URL请求 原生的MVC Model:模型,封装 ...
分类:
编程语言 时间:
2021-04-14 12:09:38
阅读次数:
0
一、全局异常处理之注解方式 主要用到的注解有2个 @ControllerAdvice 用在Controller类级别上,可看做是一个增强的Controller @ExceptionHandler 用到Controller中具体的方法上,表明这个方法处理的具体某个异常类型 我们一般在捕获到异常的时候, ...
分类:
编程语言 时间:
2021-04-14 12:09:04
阅读次数:
0
查看所有配置,用户信息和文件位置 git config --list --show-origin 用户信息配置 git config --global user.name "user_name" git config --global user.email "user_email@qq.com" 本 ...
分类:
其他好文 时间:
2021-04-13 12:23:36
阅读次数:
0
监控linux主机的相关性能 cpu 内存 网络 磁盘 带宽 IO采用插件node_export 部署node_exporter插件[root@node1 ~]# mkdir /opt/monitor/[root@node1 ~]# tar -xf node_exporter-0.17.0.linu ...
分类:
系统相关 时间:
2021-04-13 12:02:02
阅读次数:
0
#coding:utf-8 import xlrd,requests file_name = r"F:\pythonScript\map_dp\data_center\data_config\second_disaster_of_agriculture_and_natural_gas.xls" wo ...
分类:
编程语言 时间:
2021-04-13 11:59:05
阅读次数:
0
springboot常用注解 1. @SpringBootApplication 这个注解是 Spring Boot 项目的基石,创建 SpringBoot 项目之后会默认在主类加上。 @SpringBootApplication看作是 @Configuration、@EnableAutoConfi ...
分类:
编程语言 时间:
2021-04-12 12:19:37
阅读次数:
0
现象 解决方案 1. 由于Google被墙导致的问题 参考 配置阿里云源修改maven的源地址。 2. 由于错误配置代理导致的问题(提示400) 查看工程目录下的gradle.properties和C:/Users/用户名/.gradle/目录下的gradle.properties是否存在下面的内容 ...
分类:
Web程序 时间:
2021-04-12 12:07:10
阅读次数:
0