
springboot
砖家穴者叫兽
这个作者很懒,什么都没留下…
展开
-
springboot整合mybatis,mysql做数据库存储,redis做缓存
redis应用的场景通过缓存来减少对关系型数据库的查询次数,减轻数据库压力。在执行DAO类的select***(), query***()方法时,先从Redis中查询有没有缓存数据,如果有则直接从Redis拿到结果,如果没有再向数据库发起查询请求取数据。springboot已经集成了redis缓存,只需要在pom.xml中加载redis,然后通过注解即可完成配置。首先在配置类中加上 @...原创 2019-03-18 15:55:05 · 19208 阅读 · 1 评论 -
spring boot中不能识别RestController的原因
才开始学习spring boot,第一个程序helloworld就碰到@RestController和@RequestMapping(/hello)的注解都会报错的问题。我个人的解决方法:1.springboot默认有<dependencies><dependency><groupId>org.springframew...原创 2019-05-30 16:15:47 · 25570 阅读 · 4 评论 -
Spring Boot,Shiro1.4.0 & Layui 2.5.4 权限管理系统
FEBS-Shiro是一款简单高效的后台权限管理系统,使用Spring Boot,Shiro和Layui构建。FEBS意指:Fast,Easy use,Beautiful和Safe。相信无论作为企业级应用,私活开发脚手架或者权限系统构建学习,FEBS-Shiro都会是一个不错的选择。演示地址地址:http://49.234.20.223:8080/login系统特点前后端请求参数校...转载 2019-06-20 08:56:45 · 13702 阅读 · 1 评论 -
Failed to obtain JDBC Connection
Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either ...原创 2019-06-11 16:20:27 · 23776 阅读 · 0 评论 -
SpringBoot+MybatisPlus+Druid_mysql搭建简单的项目自动生成代码
数据库CREATE DATABASE test;USE test;CREATE TABLE `user` (`id` BIGINT(20) NOT NULL AUTO_INCREMENT,`username` VARCHAR(50) NOT NULL COMMENT '用户名',...原创 2019-07-12 09:43:11 · 28673 阅读 · 1 评论 -
Spring Boot 注解大全
一、注解(annotations)列表@SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan让spring Boot扫描到Configuration类并把它加入到程序上下文。@Configuration等同于spring的XML配置文件;使用Ja...原创 2019-08-22 22:07:39 · 13964 阅读 · 0 评论