定义线程池 第一步,先在Spring Boot主类中定义一个线程池,比如: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run ...
分类:
编程语言 时间:
2020-07-10 18:41:19
阅读次数:
69
应用程序计时器 Application timers 应用程序计时器是内核对象,为任务提供简单的方法来计时事件,或者更常见的是,定期执行活动。介绍了Nucleus SE中计时功能的所有细节——准确性、中断处理等。 Using Timers 应用程序计时器可以配置为一次性的-即,它们被启动,然后,在指 ...
分类:
其他好文 时间:
2020-07-10 17:13:41
阅读次数:
105
1 2019-08-04 14:17:01.918 ERROR 11628 [ main] o.s.boot.SpringApplication : Application run failed 2 3 org.springframework.beans.factory.BeanCreationEx ...
分类:
其他好文 时间:
2020-07-10 17:02:48
阅读次数:
96
接口理论知识 一、接口测试概述1、什么是接口? 生活中的接口案例: 插座、水龙头、转接头、充电器、USB、电源 总结为:连接两个设备,并且进行物质传递 API(Application Program Interface):属于一种操作系统或程序接口。 GUI(Graphic User Interfa ...
分类:
其他好文 时间:
2020-07-10 15:20:21
阅读次数:
77
前提:基于纯后端服务, post 请求 (Content-Type: application/json,) 1.获取未经处理过的原始数据而不管内容类型,如果数据格式是json的,则取得的是json字符串,排序和请求参数一致 c = request.get_data() 2.将请求参数做了处理,得到的 ...
分类:
其他好文 时间:
2020-07-09 16:43:25
阅读次数:
86
//Ajax $.ajax({ url:"https://www.baidu.com", type:"GET", dataType:"text", contentType:"application/x-www-form-urlencoded;charset=utf-8", data:{ id:"12 ...
分类:
Web程序 时间:
2020-07-09 01:18:37
阅读次数:
131
SpringBoot 配置 配置文件 SpringBoot 使用一个全局的配置文件,配置文件名称是固定的,作用是修改 SpringBoot 自动配置的默认值(底层自动配置的值),有两种方式可以使用: application.properties 语法结构 :key=value application ...
分类:
编程语言 时间:
2020-07-08 22:47:30
阅读次数:
52
因为with里面,一旦结束,就会重新生成with环境变量 https://stackoverflow.com/questions/19277280/preserving-global-state-in-a-flask-application 我们需要保证每个request是独立的,这样才不会造成某个 ...
分类:
其他好文 时间:
2020-07-08 18:07:04
阅读次数:
63
修改C:\Program Files\mysql-8.0.16-winx64\my.ini [mysqld]# 设置3306端口port=3306# 设置mysql的安装目录basedir=C:\Program Files\mysql-8.0.16-winx64# 设置mysql数据库的数据的存放目 ...
分类:
数据库 时间:
2020-07-08 15:26:55
阅读次数:
86
nohup java -Dserver.port=8087 -Dspring.config.location=application-generic.yml -jar ${APP_HOME}/${APP_NAME} >/dev/null 2>&1 #-Dserver.port为指定端口启动 #-Ds ...
分类:
移动开发 时间:
2020-07-08 15:25:20
阅读次数:
106