使用SpringBoot开发过程中,难免需要配置相关数据项,然后在Java代码中@Autowired注入并使用。 我们应该如何读取properties文件中的配置项呢? 基于SpringBoot项目,配置项一般都存放在application.properties文件中。有2种常用的方法: 1.使用@ ...
分类:
编程语言 时间:
2020-06-16 20:30:30
阅读次数:
62
// Event0616.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <WINDOWS.H> HANDLE hEvent; HANDLE hMutex; DWOR ...
NULL 这个值表示 UNKNOWN(未知):它不表示“”(空字符串)。对 NULL 这 个值的任何比较都会生产一个 NULL 值。您不能把任何值与一个 NULL 值进行比 较,并在逻辑上希望获得一个答案。 使用 IS NULL 来进行 NULL 判断 ...
分类:
其他好文 时间:
2020-06-15 22:33:40
阅读次数:
134
今天整理了Maven的pom.xml文件后,把多个项目用maven集成在了一起,结果在启动Tomcat的时候,遇到一个奇葩的错误: 严重: Servlet [spring] in web application [/AbcWeb] threw load() exception java.lang.I ...
分类:
编程语言 时间:
2020-06-15 22:33:28
阅读次数:
50
curl命令:(和postman请求是一个道理,只不过这个是用于liunx服务器直接请求的命令) curl -l -H "Content-type: application/json" -X POST -d '入参' 请求url例如:curl -l -H "Content-type: applica ...
分类:
Web程序 时间:
2020-06-15 20:33:28
阅读次数:
106
// remote06.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" BOOL func(DWORD ProcessID,char* Dll ...
分类:
编程语言 时间:
2020-06-15 19:20:49
阅读次数:
68
MultiDex原理 分包机制对于 Android 5 以下的手机耗时更长 public static void install(Context context) { Log.i("MultiDex", "Installing application"); if (IS_VM_MULTIDEX_CA ...
分类:
其他好文 时间:
2020-06-15 17:52:56
阅读次数:
65
showdoc自带错误日志。目录位于网站根目录的server/Application/Runtime/Logs/Api目录下,如果没有任何内容需要添加可写权限。 showdoc升级后,建议把MySQL改成Sqlite,这里我们没改。后期出现了一系列问题,观察这个位置的日志就能解决。 建议升级的用户看 ...
分类:
其他好文 时间:
2020-06-15 15:41:53
阅读次数:
189
简而言之,内存不够了。 https://serverfault.com/questions/828839/kernel-reported-iscsi-connection-10-error-1022-invalid-or-unknown-error-code I got a couple of re ...
分类:
其他好文 时间:
2020-06-15 11:56:54
阅读次数:
130
go mod 配置 beego 首先cmd bee new blog go mod init 然后复制到任意目录 bee run 就会报错, 要退出该目录,进入上级目录 bee run blog 才行 ...
分类:
移动开发 时间:
2020-06-15 10:16:56
阅读次数:
91