03 2019 档案
摘要:update 更新表 set 字段 = (select 参考数据 from 参考表 where 参考表.id = 更新表.id); update table_2 m set m.column = (select column from table_1 mp where mp.id= m.id); 例
阅读全文
摘要:1、安装 rpm -i 需要安装的包文件名 举例如下: rpm -i example.rpm 安装 example.rpm 包; rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息; rpm -ivh example.rpm 安装 examp
阅读全文
摘要:1 下载地址:http://libevent.org/ 2、解压 tar zxvf libevent-2.0.21-stable.tar.gz 安装前请先安装 gcc yum install gcc 3、配置安装路径 cd libevent-2.0.21-stable ./configure -pr
阅读全文
该文被密码保护。
摘要:web应用中连接mysql数据库时控制台会出现这样的提示: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.2
阅读全文
摘要:${pageContext.request.contextPath}是JSP取得绝对路径的方法,等价于<%=request.getContextPath()%> 。 也就是取出部署的应用程序名或者是当前的项目名称 比如我的项目名称是demo1在浏览器中输入为http://localhost:8080
阅读全文
摘要:.删除本地时间并设置时区为上海 rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 1 yum install ntp ntpdate 2 ntpdate -u ntp.sjtu.edu.cn 20
阅读全文
摘要:SEVERE: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component
阅读全文
摘要:maven中央仓库地址:https://mvnrepository.com/ 2.解决办法: 这是由于缺少servlet-api.jar包,其实tomcat下有,但是在java build path把他加载过来,还是报这个错误,所以我们直接在pom.xml里面加入这个jar包即可,加入的代码如下:
阅读全文
摘要:说明Jar包出现了问题。 解决方法 方法1、可通过右击项目名 -> Run as -> Maven test ,这时控制台会报哪个jar包出错。 (也可以打开DOS命令窗口,切换至项目目录,运行mvn test命令,和Eclipse的控制台输出信息一致) 方法2、如果方法1未出现任何错误信息,那么就
阅读全文
摘要:一般 我们在spring mvc的配置文件中 这样配置拦截器 <!--拦截器 --> <mvc:interceptors> <!--多个拦截器,顺序执行 --> <!-- 登陆认证拦截器 --> <mvc:interceptor> <mvc:mapping path="/**"/> <bean cl
阅读全文
摘要:1 官网下载地址:https://nodejs.org/en/download/ 2 下载的node-v10.15.2-linux-x64.tar.xz 上传到Linux系统后 因为安装的是纯净版的Linux系统 没有xz指令 需要yum安装下xz 指令为:yum install xz 3 安装完x
阅读全文
摘要:/etc/rc.d/rc.local 用于添加开机启动命令 /etc/rc.local是/etc/rc.d/rc.local的软连接
阅读全文
摘要:1 cd / 2 mkdir -p /app/ios 3 cd /opt mkdir ios 4 把下载好的centos-6.7-x86_64-bin-dvd1.iso 上传到 /opt/ios目录下 5 把光盘挂载到 /app/ios目录下 mount -o loop /opt/ios/CentO
阅读全文