
SpringBoot
棉裤开档
这个作者很懒,什么都没留下…
展开
-
Spring boot 篇 无web.xml启动原理
spring3.1之后基于servlet3.0可以在没有web.xml文件下,在tomcat下面运行。那么没有web.xml是如何启动的呢,下面就来介绍下不通过web.xml方式启动web项目的内部逻辑Spring MVC 继承WebApplicationInitializer类Spring Boot 继承SpringBootServletInitializer类...转载 2019-05-27 14:47:55 · 685 阅读 · 0 评论 -
Spring boot篇 配置Filter过滤器
传统的javaEE增加Filter是在web.xml中配置<filter> <filter-name>TestFilter</filter-name> <filter-class>com.demo.filter.TestFilter</filter-class></filter><filter-map...转载 2019-05-27 15:10:02 · 277 阅读 · 0 评论 -
Spring boot篇 swagger API文档的框架
配置pom.xml <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> ...转载 2019-05-27 22:15:23 · 120 阅读 · 0 评论 -
Spring boot篇 myibatis 整合使用
实体类构建使用 generatorgeneratorConfig.xml 配置文件<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" ...转载 2019-05-31 07:58:11 · 1102 阅读 · 0 评论 -
Spring boot 篇 整合pagehelper分页
添加依赖 <!-- mybatis 分页配置 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> ...转载 2019-05-31 08:26:27 · 228 阅读 · 0 评论 -
Spring boot篇 redis配置
application.properties 的配置#redis的相关配置# Redis数据库索引(默认为0)spring.redis.database=0# Redis服务器地址spring.redis.host=xx.xx.xx.xx# Redis服务器连接端口spring.redis.port=6369# Redis服务器连接密码(默认为空)spring.redis.pas...转载 2019-05-31 13:43:49 · 261 阅读 · 0 评论 -
Spring boot 篇 获得application.properties里的配置
架设在application.properties里的 自定义 配置如下找寻对应开头的 配置使用配置相关转载 2019-06-01 15:14:30 · 182 阅读 · 0 评论 -
Spring boot 篇 两种配置方式
spring boot 有两种配置方式application.properties,application.yml两种都可以配置spring boot 项目中的一些变量的定义,参数的设置等。application.properties 配置: spring.profiles.active=dev spring.datasource.data-username=root ...转载 2019-06-10 13:16:47 · 540 阅读 · 0 评论