![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
1
宇智波Tom
这个作者很懒,什么都没留下…
展开
-
springmvc-文件上传
@PostMapping( "/upload")String upload(@RequestParam("file") CommonsMultipartFile file ,HttpServletRequest request) throws IOException { // 第一中方法// String path= request.getSession().getServletContext().getRealPath("/upload");//// File原创 2021-05-07 12:32:38 · 70 阅读 · 1 评论 -
servlet-上传文件
<html> <head> <title>$Title$</title> </head> <body> <form action="${pageContext.request.contextPath}/shang" enctype="multipart/form-data" method="post"> <input type="file" name="file">上传文件原创 2021-05-07 09:39:03 · 101 阅读 · 0 评论 -
springmvc简单原理流程图
原创 2021-04-23 00:01:21 · 76 阅读 · 0 评论 -
全排列
public static void main(String[] args) { int[] a={1,2,3}; Deque<Integer> queue=new ArrayDeque<>(); boolean[] judge=new boolean[a.length]; dfs(a,queue,0,judge); } static void dfs(int[] a, Deque<In...原创 2021-04-21 19:34:02 · 48 阅读 · 0 评论 -
希尔排序
static int[] paixu(int[] a) { int length=a.length; for (int i=length/2;i>0;i/=2) { //i就是每个数组每隔i个数就是该数组的下一位 for (int j=i;j<length;j++) { //遍历数组的所有数 .原创 2021-04-21 13:15:34 · 50 阅读 · 0 评论 -
kmp
public class kmp { public static void main(String[] args) { } static int[] next(int[] a) { int[] next=new int[a.length]; int i=0; int j=-1; next[0]=-1; while (i<a.length-1) {原创 2021-04-18 21:03:07 · 62 阅读 · 0 评论 -
redis.conf详解
注意单位: 当需要配置内存大小时, 可能需要指定像1k,5GB,4M等常见格式# 1k => 1000 bytes# 1kb => 1024 bytes# 1m => 1000000 bytes# 1mb => 1024*1024 bytes# 1g => 1000000000 bytes# 1gb => 1024*1024*1024 bytes## units are case insensitive so 1GB 1Gb 1gB are all the原创 2021-04-17 15:56:26 · 104 阅读 · 0 评论 -
2021-04-17
自定义RedisTemplate@Configurationpublic class MyRedisTemplate {@Bean @SuppressWarnings("all") public RedisTemplate<String,Object> redisTemplate(RedisConnectionFactory redisConnectionFactory){ RedisTemplate<String,Object> redisTemplat原创 2021-04-17 15:32:04 · 48 阅读 · 0 评论