随笔分类 - Spring Boot
摘要:概述 : Memcached是一个自由开源的,高性能,分布式内存对象缓存系统。Memcached基于内存的key-value存储, 用来存储小块的任意数据,这些数据可以是数据库调用、API调用或者是页面渲染的结果。 通过Memcached缓存数据库查询结果,可以有效地减少数据库访问次数,进而提高动态
阅读全文
摘要:先来几个测试方法, pom在最下面: 完整代码 : https://github.com/lifan12589/infinite-possibilities/tree/master/springboot_stu/es-Api 创建索引: @Test @SneakyThrows public void
阅读全文
摘要:启动类: package com.infinitePossibilities; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoCon
阅读全文
摘要:一. 整合 google.guava Controller: package com..web; import com..anno.RateLimitAnno; import org.springframework.web.bind.annotation.RequestMapping; import
阅读全文
摘要:项目结构: application.properties 文件配置: ##Jpa配置 spring.jpa.database=mysql spring.jpa.show-sql=true spring.jpa.hibernate.ddl-auto=none ##数据库配置 ##数据库acnew地址
阅读全文
摘要:1.创建一个DefinitionRegistryPostProcessor : package com..aop_mybatis; import org.springframework.beans.BeansException; import org.springframework.beans.fa
阅读全文
摘要:1.先导入相关依赖: <!-- mysql:MyBatis相关依赖 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <ve
阅读全文
springboot项目浏览器报错:Whitelabel Error Page --There was an unexpected error (type=Not Found, status=404)
摘要:页面访问http://localhost:8080/hello 1.检查url是否正确 下面的是 :http://localhost:8080/hello 下面的是 : http://localhost:8080/111/hello 上面的路径对我没用,检查pom.xml ,添加thymeleaf依
阅读全文
摘要:一:当在eclipse启动spring boot项目时出现问题: springboot错误: 找不到或无法加载主类 解决办法: 1,通过cmd命令行,进入项目目录进行,mvn clean install 进行编译 项目install后,再到eclipse 上选中项目按F5刷新项目。再运行即可问题解决
阅读全文
摘要:Spring Boot (一)入门 https://www.cnblogs.com/TangJiaXin/p/apollo.html Spring Boot (二)Web综合开发 https://www.cnblogs.com/TangJiaXin/p/11586266.html Spring Bo
阅读全文
浙公网安备 33010602011771号