2024年1月15日
摘要: # 进入/etc/init.d/ cd /etc/init.d/ #创建启动脚本 touch start.sh #编写启动脚本 前三行为必填 vim start.sh #!/bin/bash# chkconfig: - 85 15# description:开机自启脚本/usr/local/ngin 阅读全文
posted @ 2024-01-15 14:01 知了不了了之 阅读(9) 评论(0) 推荐(0) 编辑
  2023年6月5日
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> @Configuration public cl 阅读全文
posted @ 2023-06-05 23:29 知了不了了之 阅读(23) 评论(0) 推荐(0) 编辑
  2023年4月17日
摘要: node.js服务器 io.set('transports', ['websocket', 'xhr-polling', 'jsonp-polling', 'htmlfile', 'flashsocket']); io.set('origins', '*:*'); java 服务器 方式一: Con 阅读全文
posted @ 2023-04-17 22:09 知了不了了之 阅读(143) 评论(0) 推荐(0) 编辑
  2022年12月1日
摘要: 创建脚本文件 /etc/init.d/prs_xml.jar 添加脚本 chkconfig -add prs_xml.jar 查看服务列表 chkconfig --list 启动服务 chkconfig prs_xml.jar on 设置启动等级 chkconfig --level 35 prs_x 阅读全文
posted @ 2022-12-01 12:59 知了不了了之 阅读(147) 评论(0) 推荐(0) 编辑
  2022年11月18日
摘要: // 同一作用域下// 函数名称相同// 函数参数类型不同 或者 个数不同 或者顺序不同//注意函数的返回值不可以作为函数的重载条件void func(int a){ cout << "函数的重载" << endl; } void func(int a, int b){ cout << "函数的重载 阅读全文
posted @ 2022-11-18 10:05 知了不了了之 阅读(13) 评论(0) 推荐(0) 编辑
  2022年11月17日
摘要: void func(int a, int){ cout << "占位参数" << endl; } //占位参数之默认参数 void func2(int a, int =10){ cout << "占位默认参数" << endl; } int main(){ func(1, 1); func2(1); 阅读全文
posted @ 2022-11-17 22:25 知了不了了之 阅读(63) 评论(0) 推荐(0) 编辑
摘要: // 如果某个位置参数有默认值,那么从这个位置往后,从左向右,必须都有默认值int func( int a , int b=10){ return a+b; }//一个错误示范 int func( int a , int b=10 ,int c ){ return a+b +c; } int mai 阅读全文
posted @ 2022-11-17 22:17 知了不了了之 阅读(43) 评论(0) 推荐(0) 编辑
  2022年11月15日
摘要: int main(){ int * p = new int(10); cout << *p << endl; delete p; cout << *p << endl; int * arr = new int[10]; for(int i=0; i< 10 ; i++){ arr[i] = i +1 阅读全文
posted @ 2022-11-15 23:27 知了不了了之 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 代码区: 存放函数的二进制代码,由操作系统管理 全局区: 存放全局变量、静态变量以及常量。 栈区:由编译器自动分配释放,存放函数的参数值,局部变量等 堆区:由程序员分配和释放,若程序员不释放,程序结束时由操作系统回收 代码区: 存放CPU执行的机器指令 代码区是共享的,共享的目的是对于频繁被执行的程 阅读全文
posted @ 2022-11-15 23:11 知了不了了之 阅读(15) 评论(0) 推荐(0) 编辑
  2022年11月10日
摘要: @PostMapping("upload") public Result add( @RequestPart(value = "startTime") String startTime, @RequestPart(value = "id") String id, @RequestPart(value 阅读全文
posted @ 2022-11-10 14:35 知了不了了之 阅读(919) 评论(0) 推荐(0) 编辑