URL对象 URL类 URL(Uniform Resource Locator) 一致资源定位器的简称,表示Internet上某一资源的地址 URL的组成 protocol:resourceNamae 协议名指明获取资源所使用的的传输协议,如http、ftp等,资源名则是资源的完整地址,包括主机名、 ...
分类:
其他好文 时间:
2020-11-11 15:56:21
阅读次数:
6
由于公司的网络限制,或者外网下载网速过慢的情况。会导致google或者jcenter库的aar,jar库文件无法下载。 错误信息 错误信息分析 Caused by: org.gradle.api.resources.ResourceException: Could not get resource ...
分类:
移动开发 时间:
2020-11-10 11:18:22
阅读次数:
22
基于MVC的RESTful风格的实现 1.RESTful风格阐述 REST服务是一种ROA(Resource-Oriented Architecture,面向资源的架构)应用。主要特点是方法信息存在于HTTP协议的方法中(GET,POST,PUT,DELETE),作用域存在于URL中。例如,在一个获 ...
dao @Repository --写在dao层 service @Service --写在service层 controller @Controller --写在controller层 @Scope --写在多人访问controller上 属性注入 @Autowired --写在需要注入的属性上 ...
分类:
编程语言 时间:
2020-11-07 15:46:00
阅读次数:
20
配置文件没有注册 遇到这样的报错,可能是Mapper.xml没有注册。 解决方案: 在核心配置文件(一般叫mybatis-config.xml)的最后面加入 <mappers> <mapper resource="xxx/xxx/xxx"/> </mappers> ,在resource里将路径改为M ...
分类:
其他好文 时间:
2020-11-06 02:27:36
阅读次数:
23
.get cookie with your browser then can do WebClient wc = new WebClient(); wc.Headers.Add("referer", "https://www.toutiao.com/"); wc.Headers.Add("cooki ...
分类:
其他好文 时间:
2020-10-31 01:08:29
阅读次数:
23
<configuration> <properties resource="db.properties"></properties> <settings> <!-- 控制全局缓存(二级缓存),默认 true--> <setting name="cacheEnabled" value="true"/> ...
分类:
其他好文 时间:
2020-10-26 10:37:47
阅读次数:
29
SpringBootApplication 注解作用:用来表示这是一个SpringBoot的入口类,这个注解只能出现一次 详解: @SpringBootApplication 派生注解 | 组合注解,等效于以下三个注解 @SpringBootConfiguration # 标识注解,标识这是一个Sp ...
分类:
编程语言 时间:
2020-10-24 10:19:17
阅读次数:
25
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), ...
分类:
系统相关 时间:
2020-10-21 21:14:02
阅读次数:
30