实现登录页面的中英文转换 1.编写国际化配置文件,抽取页面需要的国际化信息 2.页面设计 访问时会根据浏览器的语言选择对应的语言 使用了thymeleaf的相关语法 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org" ...
分类:
编程语言 时间:
2020-05-24 21:29:41
阅读次数:
86
地址:http://poj.org/problem?id=2985 题意: 输入n,m。共n只猫,m组询问。 1,L,R。L号猫所在组和R号猫所在组合并 0,x。查询第x大组有几只猫。 解析: 理解了好久的说。。。最最重要的还是树状数组的本质要理解好,要不代码写再多也没用。 树状数组:c[i]表示所 ...
分类:
编程语言 时间:
2020-05-24 19:14:32
阅读次数:
54
1.super调用父类的构造方法,必须在构造方法的第一行. 2.super必须 只能出现在子类的构造方法和方法中使用!!! 3.super和this不能同时调用构造方法! 也就是说调用子类构造方法之前,必然先调用父类的构造器 与 this 区别: 代表的对象不同 super:代表父类对象的引用 th ...
分类:
其他好文 时间:
2020-05-24 13:42:08
阅读次数:
48
It’s been a while since Cisco has announced Smart License to replace Traditional PAK-based licensing. Overall, this new system brings loads of benefit ...
分类:
系统相关 时间:
2020-05-23 12:53:18
阅读次数:
259
1:泛型类、泛型方法、泛型接口、泛型委托 /// <summary> /// 泛型方法 /// </summary> public class GenericTest { public static void Show<T>(T tParameter) { Console.WriteLine("Th ...
分类:
其他好文 时间:
2020-05-22 19:00:23
阅读次数:
51
if-then if command then commands fi bash shell中的if语句运行在if行定义的命令. 如果命令突出状态时0, 将执行then后面的命令. 如果命令的退出状态时0以外的其他值,那么then后面的命令将不会执行.#!/bin/bash # testing th ...
分类:
系统相关 时间:
2020-05-22 17:27:54
阅读次数:
55
最近在学习thymeleaf模板引擎,在使用th:text读取国际化文本时读取不到值,如下: 资源目录结构如下: index.html 内容: home.properties 内容: 在度娘的帮助下,找到了问题的所在, spring.messages.basename 默认值为 messages , ...
分类:
其他好文 时间:
2020-05-19 18:00:57
阅读次数:
250
2020-05-16 18:35:01 问题描述: 我们有一组排序的数字 D,它是 {'1','2','3','4','5','6','7','8','9'} 的非空子集。(请注意,'0' 不包括在内。) 现在,我们用这些数字进行组合写数字,想用多少次就用多少次。例如 D = {'1','3','5 ...
分类:
其他好文 时间:
2020-05-16 20:50:38
阅读次数:
79
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:
其他好文 时间:
2020-05-16 15:13:55
阅读次数:
66
下载解压切换目录略~ 编译nginx 没有报错 然后我们make 第一个报错就这样出来了 _ : src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’: src/core/ngx_murmurhash.c:37:11: error: th ...
分类:
其他好文 时间:
2020-05-16 00:11:16
阅读次数:
1613