上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: MyBatis 文档 Spring 文档 Spring-MyBatis 文档 阅读全文
posted @ 2020-08-01 17:46 li修远 阅读(74) 评论(0) 推荐(0) 编辑
摘要: CREATE DATABASE `mybatis`; USE `mybatis`; CREATE TABLE `user` ( `id` INT(20) NOT NULL PRIMARY KEY, `name` VARCHAR(20) DEFAULT NULL, `pwd` VARCHAR(30) 阅读全文
posted @ 2020-07-30 00:20 li修远 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.确保项目结构的正确 确保资源导入成功 如果没有成功,在 pom.xml 中添加如下代码,防止资源导出失败的问题。添加以后,任然未成功,清除maven, 重启idea,再次尝试。 <!--在build中配置resources,来防止我们资源导出失败的问题--> <build> <resources 阅读全文
posted @ 2020-07-30 00:17 li修远 阅读(422) 评论(0) 推荐(0) 编辑
摘要: java项目中可以找到db.properties文件,但使用Tomcat的web项目中却无法找到文件。 可以尝试以下解决方案。 确保web项目中目录WEB-INF/classes下生成了db.properties 文件。 pom.xml 文件中添加如下代码,确保资源导入成功 <!-- 在build中 阅读全文
posted @ 2020-07-28 12:00 li修远 阅读(673) 评论(0) 推荐(0) 编辑
摘要: jsp中导入css三种方式 import 方式 <style type="text/css"> @import url(css/style.css); </style> link 方式 <link type="text/css" rel="stylesheet" href="css/style.cs 阅读全文
posted @ 2020-07-27 20:54 li修远 阅读(527) 评论(0) 推荐(0) 编辑
摘要: public class Demo01 { public static void main(String[] args) { //OOP 规约 7. 所有的相同类型的包装类对象之间值的比较,全部使用 equals 方法比较。 Integer a = 12; Integer b = 12; Syste 阅读全文
posted @ 2020-07-19 10:38 li修远 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 等价于求最大元素和最小元素小于target的非空子集问题。 排序 双指针维护满足题意的最大窗口[i, j],方案数目:$2^$ 注意: 分析重复情况。 class Solution { public int numSubseq(int[] nums, int target) { int n = nu 阅读全文
posted @ 2020-07-14 18:48 li修远 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 单调队列,维护合法窗口内的当前最大值(队头)及未来可能成为最大值的元素下标。 class Solution { public int findMaxValueOfEquation(int[][] p, int k) { int n = p.length; int res = Integer.MIN_ 阅读全文
posted @ 2020-07-14 18:31 li修远 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 将每个数按照mod k的余数不同分成k类, 负数的余数为负数,特殊处理:(arr[i] % k + k) % k。 class Solution { public boolean canArrange(int[] arr, int k) { int[] cnt = new int[k]; for(i 阅读全文
posted @ 2020-07-14 11:37 li修远 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 脑筋急转弯 每只蚂蚁都一样,相遇之后,相当于两人互换身份,继续朝原来的方向前进。因此,找出距离朝向端点最远的蚂蚁需要走多久,就是答案。 class Solution { public int getLastMoment(int n, int[] left, int[] right) { int re 阅读全文
posted @ 2020-07-13 13:06 li修远 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页