1.pom依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
编程语言 时间:
2020-07-14 16:35:31
阅读次数:
67
情景:因为不可能所有的属性都放在全局文件(SpringBoot项目使用一个全局的配置文件application.properties或者是application.yml)中 所以需要把一些跟springboot无关的东西放在其他文件,用 @PropertySource:加载指定的配置文件;直接用@P ...
分类:
数据库 时间:
2020-07-14 13:46:59
阅读次数:
162
配置示例 https://blog.csdn.net/weixin_45415885/article/details/102870687 API https://docs.min.io/cn/ ...
分类:
编程语言 时间:
2020-07-14 00:31:53
阅读次数:
226
(一)java异常 Throwable这个Java类被用来表示任何可以作为异常被抛出来的类。Throwable对象可分为两种类型(指从Throwable继承而得到的类型):Error用来表示编译时和系统错误(除特殊情况外,一般不用关心);Exception是可以被抛出的基本类型。所以Java程序员关 ...
分类:
编程语言 时间:
2020-07-14 00:17:23
阅读次数:
76
https://www.cnblogs.com/gmq-sh/p/6925283.html https://www.cnblogs.com/blacksonny/p/5846411.html ...
分类:
编程语言 时间:
2020-07-13 21:42:53
阅读次数:
102
SpringBoot 单元测试 依赖注入 引入依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</sco ...
分类:
编程语言 时间:
2020-07-13 18:48:01
阅读次数:
65
开发传统Java WEB项目时,我们可以使用JSP页面模板语言,但是在SpringBoot中已经不推荐使用JSP页面进行页面渲染了。从而Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如Velocity、 ...
分类:
其他好文 时间:
2020-07-13 15:40:59
阅读次数:
74
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之NOSQL SpringBoot配置属性之MQ SpringBoot配置属性之Security Spr ...
分类:
编程语言 时间:
2020-07-13 15:13:17
阅读次数:
92
1、导入--maven-工程 前提 配置maven 重写setting.xml+首选项maven-2个地方 2、pom springcloud 使用 Finchley版本对 springboot 的版本依赖是 2.0.3.RELEASE 新建springboot项目的过程 使用github 1、右键 ...
分类:
编程语言 时间:
2020-07-13 13:59:24
阅读次数:
78