码迷,mamicode.com
首页 >  
搜索关键字:Spring Cache    ( 53588个结果)
Spring+Spring MVC框架启动的过程
Spring 的MVC,是基于Servlet功能实现的,通过实现Servlet接口的DispatcherServlet来封装其核心功能实现。 1 启动web容器后,会有一个servletContext对象该对象是全局唯一,项目中所有Servlet都共享该对象。ContextLoaderListene ...
分类:编程语言   时间:2020-05-17 16:15:39    阅读次数:89
Spring JDBC 示例
准备工作 创建一个 Spring 应用程序 在项目中添加 Spring JDBC 指定的最新的库 mysql connector java.jar, org.springframework.jdbc.jar org.springframework.transaction.jar。 创建 DAO 接口 ...
分类:数据库   时间:2020-05-17 16:10:32    阅读次数:67
SpringBoot连接Redis-sentinel模式
一、引入pom <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 二、配置YML文件 serve ...
分类:编程语言   时间:2020-05-17 16:02:17    阅读次数:127
Spring Tools 4 STS New 菜单没有Spring Bean Configuration File选项
下载的sts4在new的时候,发现没有spring,只有spring boot.虽然现在都是注解驱动开发了,但偶尔还是会用到spring配置文件。sts4发现没有spring Bean configuration file选项 解决方法 1. 去官网获取tool3地址 根据自己的版本选择,我下载的是 ...
分类:编程语言   时间:2020-05-17 15:55:52    阅读次数:756
leetcode-26双周赛-5399-数位成本和为目标值的最大数字
题目描述: 提交:背包问题 class Solution: def largestNumber(self, cost, target: int) -> str: dp = [[0 for _ in range(target + 1)] for _ in range(10)] def tmax(a,b ...
分类:其他好文   时间:2020-05-17 13:07:38    阅读次数:49
使用spring-data-jpa操作数据库crud
pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:数据库   时间:2020-05-17 09:22:43    阅读次数:83
Spring Boot 之 Spring Batch 批处理实践
实践内容 从 MariaDB 一张表内读 10 万条记录,经处理后写到 MongoDB 。 具体实现 1、新建 Spring Boot 应用,依赖如下: 2、创建一张表,并生成 10 万条数据 3、创建 Person 类 4、创建一个中间处理器 5、创建 ,用户数据库映射 6、创建任务完成的监听 7 ...
分类:编程语言   时间:2020-05-17 01:35:05    阅读次数:71
springboot中添加拦截器(记录)
参考: If you want to keep Spring Boot MVC features and you want to add additional MVC configuration (interceptors, formatters, view controllers, and oth ...
分类:编程语言   时间:2020-05-17 01:33:09    阅读次数:91
springboot使用入门
1.创建maven工程,引入依赖 <!-- 所有的springboot的工程都以spring父工程为父工程 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent< ...
分类:编程语言   时间:2020-05-17 01:03:50    阅读次数:88
nodejs::开发环境搭建
vs2019 + node-v12.16.3-x64.msi 1、 安装 node-v12.16.3-x64.msi , 验证: node -v ; npm -v 2、在安装目录下新建 node_cache : 存放下载包的缓存 3、在安装目录下新建 node_global : 存放安装的全局模块 ...
分类:Web程序   时间:2020-05-17 00:49:02    阅读次数:68
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!