Spring Boot在默认情况下是支持国际化使用的,首先需要在src/main/resources下新建国际化资源文件,这里为了举例说明,分别创建如下三个文件: ? messages.properties(默认配置) message=欢迎使用国际化(默认) ? messages_en_US.pro ...
分类:
编程语言 时间:
2020-12-01 12:11:35
阅读次数:
4
vue.js入门案例 1、引入 vue.min.js <script src="vue.min.js"></script> 2、vue固定结构 <div id="app"> <!-- {{}} 插值表达式,绑定vue中的data数据 --> {{message}} </div> <script> / ...
分类:
其他好文 时间:
2020-11-27 11:45:52
阅读次数:
17
#include<queue> #include<vector> #include<unordered_map> using namespace std; struct Node { int x; int y; double cost; int parent; Node(int ix, int iy ...
分类:
编程语言 时间:
2020-11-27 11:07:17
阅读次数:
8
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * Return an arr ...
分类:
其他好文 时间:
2020-11-26 14:41:52
阅读次数:
8
一、List和Set以及Map 1、List , Set, Map都是接口,前两个继承至Collection接口(Collection接口下还有个Queue接口,有PriorityQueue类),Map为独立接口, (1)List下有ArrayList,Vector,LinkedList (2)Se ...
分类:
编程语言 时间:
2020-11-26 14:26:02
阅读次数:
4
项目需求,最近team逆向了3款竞品APP,总结一些经验和想法, 两款APP分别是A、B和C, A: 无法中间人,抓不到包,一旦走Charles,则提示更新APP。 一定是做了证书校验,Android里面是SSL Pinning,分析后是在Java侧做的,直接hook掉校验函数即可。 B: 可抓包, ...
分类:
移动开发 时间:
2020-11-25 12:48:12
阅读次数:
25
rabbitmq消息发送失败、 一、概述 rabbitmq消息发送失败,主要有三种 1、producter连接mq失败,消息没有发送到mq 2、producter连接mq成功,但是发送到exchange失败 3、消息发送到exchange成功,但是路由到queue失败 二、发送失败处理 produc ...
分类:
其他好文 时间:
2020-11-25 12:38:28
阅读次数:
4
新建validator.js,内容如下,参考补充: const valid = { REG_PHONE: /^[1]([3-9])[0-9]{9}$/, checkNull(rule, value, callback, message, flag = true) { if (isNullOrEmpt ...
分类:
其他好文 时间:
2020-11-25 12:29:42
阅读次数:
4
`<mvc:annotation-driven>` `<mvc:message-converters register-defaults="true">` `<bean class="org.springframework.http.converter.StringHttpMessageConver ...
分类:
Web程序 时间:
2020-11-25 12:26:14
阅读次数:
11
noilinux-1.4.1(g4.8.4)下sizeof(long double a)为12,Windows(g4.9.2)和Deepin(g++8.3.0)下都为16 sort默认从小到大排序,默认使用operator<为比较符 priority_queue,默认大根堆,小根堆为priority ...
分类:
其他好文 时间:
2020-11-25 12:25:36
阅读次数:
6