09 2019 档案

摘要:第一种打印debug日志方式: logging.level.com.demo.mapper: debug 第二种打印debug日志方式: 在resource文件夹下新建:logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration 阅读全文
posted @ 2019-09-25 15:04 威兰达 阅读(1161) 评论(0) 推荐(0)
摘要:一:在上篇文章pom增加依赖: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency> <depen 阅读全文
posted @ 2019-09-25 11:27 威兰达 阅读(736) 评论(0) 推荐(0)
摘要:一:项目结构: 二:pom文件如下: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</ve 阅读全文
posted @ 2019-09-24 20:17 威兰达 阅读(445) 评论(0) 推荐(0)
摘要:一、数据准备CREATE TABLE `tb_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `username` varchar(50) NOT NULL COMMENT '用户名', `age` int(11) NOT NUL 阅读全文
posted @ 2019-09-23 19:48 威兰达 阅读(798) 评论(0) 推荐(0)
摘要:SpringBoot 配置文件默认为application.properties,但是本章节主要讲解yaml文件配置,因为现在的趋势是使用yaml,它是类似于标准通用标记语言的子集XML的数据描述语言,语法比XML简单很多。 pom文件贴在最后面: 一、自定义属性与加载我们把之前项目中的配置文件ap 阅读全文
posted @ 2019-09-09 14:12 威兰达 阅读(528) 评论(0) 推荐(0)