-
Redis 使用过程中遇到的具体问题
Redis 使用过程中遇到的具体问题 1.缓存雪崩和缓存穿透问题 1.1缓存雪崩 简介:缓存同一时间大面积的失效,所以,后面的请求都会落到数据库上,造成数据库短时间内承受大量请求而崩掉。 解决办法: ? 事前:尽量保证整个 redis 集群的高可用性,发现机器宕机尽快补上。...
-
建议各位亲使用LocalDateTime而不使用Date哦
建议各位亲使用LocalDateTime而不使用Date哦 在项目开发过程中经常遇到时间处理,但是你真的用对了吗,理解阿里巴巴开发手册中禁用static修饰SimpleDateFormat吗 通过阅读本篇文章你将了解到: 为什么需要 LocalDate 、 LocalTime 、 LocalDateTime 【java8新提供的类...
-
spring boot整合spring Data JPA和freemarker
spring boot整合spring Data JPA和freemarker 1、spring Data JPA简介 是一个替代hibernate的一个作用于数据库的框架。 2、整合 1、导入依赖 dependency groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-data-jpa/artifactId /dependency depe...
-
SpringBoot 整合Mybatis操作数据库
SpringBoot 整合Mybatis操作数据库 1.引入依赖: 1 dependency 2 groupIdorg.mybatis.spring.boot/groupId 3 artifactIdmybatis-spring-boot-starter/artifactId 4 version2.0.0/version 5 /dependency 6 dependency 7 groupIdmysql/groupId 8 artifactIdmysql-connect...
2019-11-05 16:03:24 mysqlwordIEtimAV<ApplicationServerSQLtab
-
由一个空工程改为SpringBoot工程
由一个空工程改为SpringBoot工程 1、先创建一个空的工程,创建springboot 工程 必须继承spring-boot-stater-parent 2、导入依赖 parent groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-parent/artifactId version2.0.2.RELEASE/version/paren...
2019-11-05 16:03:22 <Application启动POSTemSpanClassappdemogroup
-
SpringBoot依赖
SpringBoot依赖 1 parent 2 groupIdorg.springframework.boot/groupId 3 artifactIdspring-boot-starter-parent/artifactId 4 version2.0.2.RELEASE/version 5 /parent 6 dependencies 7 dependency 8 groupIdorg.springframework.boot/groupId 9 artifactIdspring-boo...
-
SpringBoot使用Swagger2构建API文档
SpringBoot使用Swagger2构建API文档 1、Swagger2 介绍 Swagger2 这套自动化文档工具来生成文档,它可以轻松的整合到 Spring Boot 中,并与 Spring MVC 程序配合组织出强大 RESTful API 文档。 2、SpringBoot 开启 Swagger2 支持 1、导入依赖 dependency groupIdio.spri...
-
@Configuration
@Configuration 从Spring3.0,@Configuration用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被@Bean注解的方法,这些方法将会被AnnotationConfigApplicationContext或AnnotationConfigWebApplicationContext类进行扫描,并用于构建bean定义,初始...
-
SpringBoot构建RESTful API
SpringBoot构建RESTful API 1、RESTful 介绍 RESTful 是一种软件架构风格! RESTful 架构风格规定,数据的元操作,即 CRUD(create, read, update 和 delete, 即数据的增删查改 ) 操作,分别对应于 HTTP 方法: GET 用来获取资源, POST 用来新建资源(也可以用于更新资...
-
简单使用:SpringBoot使用freemarker
简单使用:SpringBoot使用freemarker 使用步骤: a : 添加依赖 b: 创建模板文件 保存位置resources/templates 目录下 文件后缀名.ftl c 编写controller 把结果传递给模板 在resources.templates下创建user.ftl文件,内容如下 html head titlespringboot/title /head bo...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
