上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页
摘要: SpringBoot 整合 shiro(略) SpringBoot 整和 Spring Security 官方文档:https://docs.spring.io/spring-security/site/docs/5.1.6.RELEASE/reference/htmlsingle/ 1、添加依赖 阅读全文
posted @ 2019-08-21 11:26 小名的同学 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 定时任务 使用 @EnableScheduling //开启任务 @EnableScheduling @SpringBootApplication public class Springboot13Application { public static void main(String[] args 阅读全文
posted @ 2019-08-20 22:25 小名的同学 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1、创建项目 SpringBoot 默认支持两种技术来和ES交互; 1、Jest(默认不生效:需要导入jest相关包) 2、SpringData ElasticSearch 2、测试Jest与ES交互 2.1注释掉 2.2 导入 2.3 配置 2.4 User 2.5 测试 3、SpringBoot 阅读全文
posted @ 2019-08-20 22:07 小名的同学 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 首先了解我的这篇博客:https://www.cnblogs.com/yanxiaoge/p/11379715.html(下面的基于这篇博客中的配置) 1、创建项目 <dependency> <groupId>org.springframework.boot</groupId> <artifactI 阅读全文
posted @ 2019-08-20 11:08 小名的同学 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 概述 1.大多应用中,可通过消息服务中间件来提升系统异步通信、扩展解耦能力 2.消息服务中两个重要概念: 消息代理(message broker,消息中间件服务器)和目的地(destination) 当消息发送者发送消息以后,将由消息代理接管,消息代理保证消息传递到指定目的地。 3.消息队列主要有两 阅读全文
posted @ 2019-08-19 21:06 小名的同学 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 一、JSR107(复杂性较高) Java Caching定义了5个核心接口,分别是CachingProvider,ICacheManager,Cache,Entry和Expiry。 ·CachingProvider定义了创建、配置、获取、管理和控制多个CacheManager。一个应用可以在运行期访 阅读全文
posted @ 2019-08-18 22:32 小名的同学 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 简介 Spring Data 项目的目的是为了简化构建基于Spring 框架应用的数据访问技术,包括非关系数据库、Map-Reduce 框架、云数据服务等等;另外也包含对关系数据库的访问支持。 SpringData特点 SpringData为我们提供使用统一的APl来对数据访问层进行操作;这主要是S 阅读全文
posted @ 2019-08-18 15:57 小名的同学 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一、spring Boot整合MyBatis 1、创建项目 主要引入 mybatis-spring-boot-starter会自动引入jdbc,所以我们创建项目的时候不需要引入jdbc API了 2、注解方式整和MyBatis 2.1创建dao(mapper),使用注解的方式 在SpringBoot 阅读全文
posted @ 2019-08-18 09:49 小名的同学 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 一、整合JDBC 1、基本操作 1.1 创建项目 1.2 配置参数(application.properties) 1.3 测试 2、操作数据库(使用JdbcTemplate) 二、整合Druid 版本:http://central.maven.org/maven2/com/alibaba/drui 阅读全文
posted @ 2019-08-17 22:17 小名的同学 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 内置Servlet使用 1、如何定利和修改Servlet容器的相关配置? 1.1 修改server有关的配置(ServerProperties) 通用的servlet容器设置 tomcat 设置 1.1 或者编写一个 WebServerFactoryCustomizer:嵌入式servlet容器的定 阅读全文
posted @ 2019-08-17 08:49 小名的同学 阅读(464) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页