摘要: controller方法调用: 等同于: 阅读全文
posted @ 2019-09-28 16:20 haxnt 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 使用webpack创建,确保本地已安装NodeJS,输入命令: npm install -g vue-cli vue init webpack vueEleUI cd vueEleUI npm run dev 浏览器打开 http://127.0.0.1:8080即可看到默认主页 安装Element 阅读全文
posted @ 2019-09-28 16:10 haxnt 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: 1.全局配置 在application.java文件添加CorsRegistry配置 2.局部配置 在具体方法添加@CrossOrigin(origins = “http://localhost:9527”)注解 阅读全文
posted @ 2019-04-28 16:22 haxnt 阅读(16334) 评论(0) 推荐(0) 编辑
摘要: maven依赖: 阅读全文
posted @ 2019-03-25 11:20 haxnt 阅读(4592) 评论(1) 推荐(0) 编辑
摘要: 可以换个maven库: 阅读全文
posted @ 2018-01-17 19:53 haxnt 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 package com.iloveu.xxx; 2 3 public class MergeSort { 4 5 static final int SIZE = 15; 6 7 static void mergeOne(int a[],int b[],int n,int len) 8 { 9 i... 阅读全文
posted @ 2017-11-19 11:35 haxnt 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int main() { FILE *fh = popen("ifconfig 2> /dev/null", "r"); char iwstation[4096] = {0}; char total[4096] ={0}; while(fgets(iwstation, 4096, fh)!=NULL){ strc... 阅读全文
posted @ 2017-07-21 16:42 haxnt 阅读(2696) 评论(0) 推荐(0) 编辑
摘要: 到 https://plugins.jetbrains.com/plugin/6954-kotlin下载对应版本(右键复制链接地址,用迅雷下载),放到androidstudio安装目录下的plugins目录下,重启ide即可 阅读全文
posted @ 2017-05-20 11:02 haxnt 阅读(3320) 评论(0) 推荐(0) 编辑
摘要: int sock = socket(AF_INET, SOCK_STREAM, 0) //建立一个流式套接字,stream是流的意思,Tcp连接,提供序列化的、可靠的、双向连接的字节流。支持带外数据传输 先占个坑,以后再详细介绍其他参数 阅读全文
posted @ 2017-05-16 15:18 haxnt 阅读(684) 评论(0) 推荐(0) 编辑
摘要: strcat: 将两个char类型连接。 char d[20]="GoldenGlobal"; char *s="View"; strcat(d,s); 结果放在d中 printf("%s",d); 输出 d 为 GoldenGlobalView (中间无空格) d和s所指内存区域不可以重叠且d必须 阅读全文
posted @ 2017-05-16 15:07 haxnt 阅读(290) 评论(0) 推荐(0) 编辑