Unsafe类提供了原子性操作CAS package com.example.demo.utils;import com.alibaba.druid.pool.DruidDataSource;import sun.misc.Unsafe;import java.lang.reflect.Field; ...
分类:
编程语言 时间:
2019-12-29 10:53:07
阅读次数:
92
题目如下: Given a binary tree, return the sum of values of its deepest leaves. Example 1: Constraints: The number of nodes in the tree is between 1 and 10 ...
分类:
其他好文 时间:
2019-12-29 10:38:07
阅读次数:
72
Struts2整合AJAX有2种方式: 使用type="stream"类型的<result> 使用JSON插件 使用type="stream"类型的<result> 获取text 前端 <body> <form> 学号:<input type="text" id="no"><br /> 姓名:<in ...
分类:
Web程序 时间:
2019-12-28 21:08:44
阅读次数:
99
1. 打开idea选择如下,next 2. 确定目录结构 3. 选择依赖,next,finish 初始化需要一会 4. pox.xml依赖 5. application.yml ( .properties是以键值对形式) 5.目录结构如下 resource中mapper路径要是“/”:com/xxx ...
分类:
编程语言 时间:
2019-12-28 19:03:43
阅读次数:
92
https://www.jianshu.com/p/caa80c7ad45c 1. 缘起:启用HTTPS也不够安全 有不少网站只通过HTTPS对外提供服务,但用户在访问某个网站的时候,在浏览器里却往往直接输入网站域名(例如www.example.com),而不是输入完整的URL(例如https:// ...
分类:
其他好文 时间:
2019-12-28 09:49:52
阅读次数:
43
安装xpathpipinstalllxmlXpath常用规则话不多说,看代码fromlxmlimportetreedoc=‘‘‘<html><head><basehref=‘http://example.com/‘/><title>Examplewebsite</title></head><body><div
分类:
其他好文 时间:
2019-12-28 09:47:05
阅读次数:
56
可以用 v-on 指令监听 DOM 事件,并在触发时运行一些 JavaScript 代码。 示例: <div id="example-1"> <button v-on:click="counter += 1">Add 1</button> <p>The button above has been c ...
分类:
其他好文 时间:
2019-12-28 09:17:30
阅读次数:
106
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 ...
分类:
其他好文 时间:
2019-12-27 13:47:34
阅读次数:
76
remove() - 删除被选元素(及其子元素) empty() - 从被选元素中删除子元素 remove()和empty()区别就是是否删除父元素。 remove() 方法也可接受一个参数,允许对被删元素进行过滤。 该参数可以是任何 jQuery 选择器的语法。 下面的例子删除 class="it ...
分类:
Web程序 时间:
2019-12-27 11:54:14
阅读次数:
110
话不多说先上图,这是启动类的配置,这里配置了@ComponentScan("我的mapper的接口") 接下来是我的项目结构截图 然后是service 的截图,我在这里加了注解@Service 最后我在测试类里面 的截图 最后附上我的maven的pom 我开始怀疑是这个配置的有问题了 <?xml v ...
分类:
编程语言 时间:
2019-12-27 11:37:35
阅读次数:
387