摘要:
引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> 添加application.prop 阅读全文
摘要:
依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.20</version> <scope>provided</scope> </dependency> 阅读全文
摘要:
依赖 <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>18.0</version> </dependency> 新建集合 阅读全文
摘要:
spring boot默认是使用tomcat jdbc连接池 application.properties注释掉spring.datasource配置 引入依赖 <!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <depend 阅读全文
摘要:
引入mybatis starter依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.1</versi 阅读全文
摘要:
filter类 package com.xiaoping.house.filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.*; import java.io.IOException 阅读全文
摘要:
pom.xml <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.8</version> </dependency> application.properties sprin 阅读全文