spring boot全局捕获异常 制作人:全心全意 @ExceptionHandler:标识拦截异常 @ControllerAdvice:Controller的一个辅助类,最常用的就是作为全局异常处理的切面类 @ControllerAdvice可以指定扫描范围 @ControllerAdvice约 ...
分类:
编程语言 时间:
2020-12-29 11:02:27
阅读次数:
0
首先Spring Boot项目中都会如下启动类: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application. ...
分类:
编程语言 时间:
2020-12-28 11:58:46
阅读次数:
0
Spring Boot + Layui + Spring Data JPA 实现前后端分离下简单增删改查分页操作 1.项目背景 自己搭着玩,写个小demo 2.项目构成 后端:Spring boot 2.3 JDK1.8 数据库:Spring Data JPA MySQL 5.7.31 前端: La ...
分类:
编程语言 时间:
2020-12-28 11:04:17
阅读次数:
0
从 GitHub 克隆一个项目下发出现了错误: error: unable to create file spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/resources/org/springfram ...
自动装配 Spring Boot大量使用XxxAutoConfiguration来使得许多组件被自动化配置并创建,而这些创建过程又大量使用了Spring的Conditional功能 当我们引入spring-boot-starter-jdbc,Spring Boot启动时会自动扫描所有的XxxAuto ...
分类:
编程语言 时间:
2020-12-25 12:10:29
阅读次数:
0
1.关机命令 shutdown 输入 shutdown,然后按回车键。此时会提示系统将在什么时间关机 2.重启命令 reboot 以 root 身份输入 reboot,然后按回车,此时系统会立刻重启。 3.输入 logout 或者 exit,此时系统会退出登录。输入 bash,重新打开一个 shel ...
分类:
系统相关 时间:
2020-12-25 12:03:54
阅读次数:
0
tar命令副本(本机备份整个系统,以后还原还是还原到本机)注意根目录下要有充足的可用空间用于备份。cd/#tar.gz格式tarcvpzfsystem_backup.tar.gz/--exclude=/proc--exclude=/lost+found--exclude=/system_backup.tar.gz--exclude=/mnt--exclude=/sys#tar.bz2格式tarcv
分类:
系统相关 时间:
2020-12-22 13:09:31
阅读次数:
0
ZYNQ SOC的FPGA引导由ARM完成,引导流程大致如下:Stage 0 (BootROM: BootROM Header) -> Stage 1 (FSBL / User code) -> Stage 2 (U-Boot / System / Application)。裸机时,stage2完成 ...
分类:
其他好文 时间:
2020-12-22 12:31:18
阅读次数:
0
Hyper-V有一个副作用,大家都知道,那就是与好多虚拟机不兼容。我现在要说的是偶然发现的另一个副作用: 我的Dell台式机设置了BIOS开机密码,设置Password Bypass-Reboot Bypass,即冷启动需输入密码热启动自动跳过, 自从win10忘了是哪一版了有了Hyper-V就再也 ...
分类:
其他好文 时间:
2020-12-22 11:52:14
阅读次数:
0
Spring Boot的默认不支持yaml文件,需要自定义一个factory import org.springframework.beans.factory.config.YamlPropertiesFactoryBean; import org.springframework.core.env. ...
分类:
编程语言 时间:
2020-12-21 12:01:39
阅读次数:
0