/** * 方法一:使用indexOf和subString方法,循环判断并截取 */ public static void getStrCount1(String str, String con) { int count = 0; while (str.indexOf(con) >= 0) { // ...
分类:
编程语言 时间:
2021-02-17 14:46:16
阅读次数:
0
Spring Security简介 历史 添加parent和web依赖 SpringBootApplication @MapperScan@SpringBootApplication public class SpringSecurityApplication{ public static void ...
分类:
编程语言 时间:
2021-02-17 14:45:56
阅读次数:
0
来源: https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/solution/er-cha-shu-de-zui-jin-gong-gong-zu-xian-by-leetc-2/ 信息分类: IT/算法 ...
分类:
其他好文 时间:
2021-02-17 14:40:10
阅读次数:
0
Switch选择结构学习 接上一篇博客的switch public static void main(String[] args) { String name = "芜湖"; //JDK7新特性,表达式结果可以是字符串 //字符的本质还是数字? //反编译 java--class(字节码文件) 反编 ...
分类:
编程语言 时间:
2021-02-17 14:18:49
阅读次数:
0
目录结构 引用路径 <link rel="stylesheet" href="../static/layui/css/layui.css" type="text/css"/> application.properties spring.mvc.static-path-pattern=/static/ ...
分类:
编程语言 时间:
2021-02-17 14:04:34
阅读次数:
0
public class demon04 { public static void main(String[] args) { int i = 128; double b = i; //强制转换 (类型)变量名 由高-->低 //自动转换 由低-->高 System.out.println(i); ...
分类:
其他好文 时间:
2021-02-16 12:46:29
阅读次数:
0
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); }} 编译javac jav ...
分类:
其他好文 时间:
2021-02-16 12:44:13
阅读次数:
0
public class Applicaition { public static void main(String[] args) { //方法的调用只和左边,定义的数据类型有关 A a = new A(); a.test(); //父类的引用b指向了子类 //子类重写了父类的方法 B b = n ...
分类:
其他好文 时间:
2021-02-16 12:32:51
阅读次数:
0
// // variadic_template.h// template <typename T>class Enum {public: using Type = T; static const char * toString(T); static T toEnum(const std::strin ...
分类:
其他好文 时间:
2021-02-16 12:24:36
阅读次数:
0
主要内容 1. 使用zookeeper原生 API 实现分布式锁2. 分析Curator实现分布式锁的原理3. 实现带注册中心的RPC框架 使用zookeeper原生 API 实现分布式锁 Synchronized或者Lock zookeeper 、redis、数据库 在使用ZooKeeper进行分 ...
分类:
其他好文 时间:
2021-02-16 11:58:30
阅读次数:
0