Dao层代码:@Overridepublic int findTotalCount(int cid,String rname) { //String sql = "select count(*) from tab_route where cid = ?"; //1.定义sql模板 String sq ...
分类:
数据库 时间:
2020-11-24 12:07:25
阅读次数:
8
sudo gedit /etc/apt/sources.list 粘贴以下内容 deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse deb-src https://repo ...
分类:
其他好文 时间:
2020-11-23 12:08:23
阅读次数:
5
工具类 package com.gcs.util; import java.util.ArrayList; import java.util.List; public class PageUtil { /** * 手动分页类 * @param datas * @param pageSize * @p ...
分类:
其他好文 时间:
2020-11-23 11:59:35
阅读次数:
4
tomcat7 - Changing default welcome-page for spring-boot application deployed as a war - Stack Overflow https://stackoverflow.com/questions/26057995/ch ...
分类:
编程语言 时间:
2020-11-23 11:59:09
阅读次数:
7
REST描述的是在网络中client和server的一种交互形式;REST本身不实用,实用的是如何设计 RESTful API(REST风格的网络接口); Server提供的RESTful API中,URL中只使用名词来指定资源,原则上不使用动词。“资源”是REST架构或者说整个网络处理的核心。比如 ...
:: %~1 - expands %1 removing any surrounding quotes ("):: %~f1 - expands %1 to a fully qualified path name:: %~d1 - expands %1 to a drive letter only: ...
分类:
其他好文 时间:
2020-11-21 12:05:00
阅读次数:
6
一、Collection 接口的继承及实现类: 其中,Interable 迭代器接口,因为Collection接口继承了Interable接口,而Interable中有一个。 二、List接口: 特点: 1.元素存取有序的集合。 2.是一个带有索引的集合,可以通过索引可以精确的操做集合中的元素。 3 ...
分类:
编程语言 时间:
2020-11-21 11:49:15
阅读次数:
4
? ArrayList和LinkedList,这两个集合大家都不陌生.尤其是ArrayList,可以说是日常开发中用的最多的容器了.而且这两个集合的知识点几乎可以说面试必问的. ArrayList ? ArrayList是List接口的一个实现类,底层是基于数组实现的存储结构,数据都是存放到一个数组 ...
分类:
其他好文 时间:
2020-11-20 12:03:10
阅读次数:
9
最近项目上部署程序时候报eureka相关的NPE错误,如下: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020- ...
分类:
移动开发 时间:
2020-11-20 11:50:24
阅读次数:
17
01. 变量交换 Bad tmp = a a = b b = tmp Pythonic a,b = b,a 02. 列表推导 Bad my_list = [] for i in range(10): my_list.append(i*2) Pythonic my_list = [i*2 for i ...
分类:
编程语言 时间:
2020-11-20 11:29:30
阅读次数:
6