自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (1)
  • 问答 (3)
  • 收藏
  • 关注

原创 双系统无非进入Windows

https://zhidao.baidu.com/question/561096123.html

2021-11-14 21:14:00 196

原创 《APUE》习题16.3

未运行过 #include<initserver.h> #include<iostream> #include<netdb.h> #include<syslog.h> #include<sys/socket.h> #include<sys/select.h> #include<vector> #define BUFLEN 128 #define QLEN 10 #ifndef HOST_NAME_MAX #define

2021-04-27 17:08:49 235

原创 《APUE》习题16.2

#include<iostream> #include<sys/stat.h> #include<sys/socket.h> #include<my_error.h> using namespace std; int main(){ int fd; struct stat stat; if((fd=socket(AF_INET,SOCK_DGRAM,0))<0) e

2021-04-27 11:04:38 333 4

原创 《APUE》习题15.18

#include<apue.h> #include<sys/mman.h> #include<TELL_WAIT.h> #include<fcntl.h> #include<iostream> #include<semaphore.h> #include<unistd.h> #define NLOOPS 10 #define SIZE sizeof(long) //size of shared memory area

2021-04-21 20:57:01 144

原创 《APUE》习题15.16

直接在习题15.15上改的,不是按图15-33改的。 #include<apue.h> #include<sys/shm.h> #include<TELL_WAIT.h> #define NLOOPS 1000 #define SIZE sizeof(long) //size of shared memory area using namespace std; union semun{ int val; struct semid_

2021-04-20 22:44:09 126

原创 《APUE》习题15.15

#include<apue.h> #include<sys/shm.h> #include<TELL_WAIT.h> #define NLOOPS 1000 #define SIZE sizeof(long) //size of shared memory area using namespace std; static int update(long *ptr){ return ((*ptr)++); } int main(){

2021-04-20 22:06:53 182

原创 《APUE》习题15.12

#include<iostream> #include<my_error.h> #include<sys/msg.h> #include<string.h> using namespace std; struct mymesg{ long mytype; char *mtext; }; int main(){ int msqid; key_t key; struct my

2021-04-20 17:00:22 143

原创 APUE习题14.1

#include<iostream> #include<apue.h> #include<my_error.h> #include<unistd.h> #include<fcntl.h> #include<signal.h> #include<errno.h> #include<signal.h> using namespace std; extern int errno; struct flock fcn

2021-04-14 17:11:57 183

原创 APUE习题9.2

/*Program: * APUE习题9.2 * History: * 2021/1/21 Chen Ying-jun First release * */ #include<apue.h> #include<iostream> #include<my_error.h> #include<unistd.h> using namespace std; int main(){ pid_t pid,p

2021-01-22 11:55:19 200

原创 APUE习题8.7

主程序是这样 /*Program: * APUE习题8.7 * History: * 2021/1/19 Chen Ying-jun First release * */ #include<apue.h> #include<my_error.h> #include<iostream> #include"dirent.h" #include<fcntl.h> using namespace std; int mai

2021-01-20 10:57:43 210

原创 APUE习题5.1。用setvbuf实现setbuf。

1 /* 2 Program: 3 APUE习题5.1。用setvbuf实现setbuf 4 History: 5 2021/1/12 Chen Ying-jun first release 6 */ 7 #include<apue.h> 8 #include<my_error.h> 9 #include 10 #include<stdio.h> 11 12 using namespcae std; 13 14 void m

2021-01-12 11:55:54 338

原创 APUE习题4.16

/* Program: APUE习题4.16. 编写一个程序循环,在每次循环中,创建目录,并将该目录更改为工作目录 History: 2021/1/9 Chen Ying-jun First release */ #include<apue.h> #include<iostream> #include<my_error.h> #include<unistd.h> #include<string> #include<memory> #

2021-01-09 15:34:56 203

原创 linux shell脚本 未找到命令

比如这样的shell脚本 1 #!/bin/bash 2 #Program 3 # Use id,inger command to check system account’s information 4 #History 5 # 2020/12/28 Chen Ying-jun First release 6 PATH=~/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin 7 export

2020-12-28 18:19:08 3746

原创 VS中友元函数无法访问类中私有成员

用的VS2019,出现标题中的问题,原来是类中声明友元函数时,有些地方没注明命名空间,不能丢,因为IDE也没这提示,一定要写全。

2020-11-16 17:56:36 1925

转载 codeblocks中断点无效问题的解决

转载 http://blog.sina.com.cn/s/blog_4fcd1ea30100ugmv.html

2020-10-28 21:51:20 627

原创 error: ‘变量名‘ does not name a type|

写了个头文件 代码大概这样 int *tasks; int *nodes; //初始化任务集合 tasks=new int[taskNum]; for(int aa=0;aa<taskNum;aa++){ std::uniform_int_distribution<int> dis1(10,100); tasks[aa]=dis1; } nodes=new int[nodeNum]; for(int i=0;i<nodeNum;i++){ std::unifo

2020-10-25 15:28:19 7103 2

原创 maven导入项目时出现:No marketplace entries found to handle maven-compiler-plugin:2.3.2:compile in Eclipse.

如图 经过网上搜索知道是因为导入项目时maven自动下载依赖包,可因为墙一些jar包下不了导致的。就是maven-compiler-plugin:2.3.2这个jar包了。 所以可以根据这个文章下包

2020-10-20 11:11:57 2131

原创 Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContex

一个简单的javaweb项目,启动不了tomcat报这个错,原因是少引入jar包spring-context-4.2.4.RELEASE.jar

2020-07-03 11:20:45 826

原创 出现类似NoClassDefFoundError: org/springframework/core/DecoratingProxy

出现类似NoClassDefFoundError: org/springframework/core/DecoratingProxy 则说明缺少jar包

2020-07-01 15:04:33 605

原创 项目启动tomcat一直超时

启动时间延长到200s也没用,打开任务管理器,MySQL服务没开,打开就好了

2020-06-06 09:57:22 328

原创 HTTP Status 500 – Internal Server Error Message unexpected token: 053.0 near line 2, column 7 [from

SQL语句写错,station是varchar型,要加单引号

2020-05-06 10:23:51 285 1

原创 关于struts中,值栈中不存在Action设置的成员变量的问题

比如这种,注意它是静态变量 在网页点<s:debug/>发现没有station这一项 解决方法: 原来是因为这个静态变量,用eclipse自动生成的get()函数,函数前面也是带static的,所以可能值栈不认这种get函数,必须去掉static ...

2020-04-30 21:28:40 159

原创 使用struts和spring时出现NullPointerException

情况是这样的,由于值栈只在调用它属于的那个action时才创建,导致我调用另一个action时无法使用这个值栈,所以我把两个action的内容都放在了一个action里,就是把StationAction的内容都搬到UserAction了 ,然后把bean里面的配置内容都调好了,jsp里面也调好了,但是当我每次在项目调用UserAction里的某个原来属于StationAction的方法时,页面一直...

2020-04-30 19:27:58 276

原创 Could not parse mapping document: com/entity/Station.hbm.xml (RESOURCE)

用hibernate配置一个Station类,这个错按照网上的说法都是映射文件Station.hbm.xml或者hibernate.cfg.xml的问题,然而我对照了几遍映射文件、类、数据库的表的属性都是一一对应的。 严重: Exception sending context initialized event to listener instance of class [org.springfr...

2020-04-29 23:38:32 584

原创 Unable to create requested service

初学hibernate,第一套视频没看完就遇到个坑,从昨天下午到今天下午才解决。 Unable to create requested service 就这玩意,网上都说是hibernate.cfg.xml配置文件里头写错,大小写什么的,不停的改也没改好,考研群里问,又有人说可能是mysql版本太高(我的8.0.x),然后准备下个5.x的,也安装失败。濒临崩溃的时候,因为之前装新mysql关掉了服...

2020-03-27 16:26:53 313

原创 tomcat启动错误:Server Tomcat v9.0 Server at localhost failed to start.

错误信息: 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoo...

2020-01-26 22:55:59 710

原创 eclipse the servers project is closed

在tomcat上加项目弹出错误eclipse the servers project is closed,原来是在左侧Servers项目关了

2020-01-26 22:33:21 900 1

slf4j-log4j12-1.7.2.jar.zip

slf4j-log4j12-1.7.2.jar.zip,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件,甚至是套接口服务器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。

2020-04-16

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除