- 博客(102)
- 收藏
- 关注
原创 non-compatible bean definition of same name and class报错
问题:由于把类移到了新的包路径下面把代码推送到gitlab仓库,触发jenkins构建war包生成的镜像,创建的容器,容器启动报如下错误:Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.example.demo.DemoApplication]; nested exception is org.springframe
2021-12-15 21:42:47
2423
原创 centos8安装iptables
关闭默认防火墙firewalld禁止开机启动: systemctl disable firewalld停止运行: systemctl stop firewalld安装iptablesyum -y install iptables-services#启动服务systemctl start iptables.service#查看状态systemctl status iptables.service#设置iptables的开机自启动systemctl enable iptables.
2021-11-02 01:00:38
1675
原创 远程debug tomcat容器 终极版
使用iptables防火墙1、在tomcat容器中tomcat/bin/catalina.sh脚本中添加的语句:JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=0.0.0.0:8000,suspend=n,server=y"重启tomcat容器2、添加端口转发iptables -t nat -A PREROUTING -i enp0s3 -p tcp -m tcp --dport 8083 -j DNAT --.
2021-11-02 00:55:01
294
原创 基于官方tomcat镜像,自定义镜像包
1、创建Dockerfile文件,内容如下:FROM tomcat:8ADD demo-0.0.1-SNAPSHOT.war /usr/local/tomcat/webappsRUN mv /usr/local/tomcat/webapps/demo-0.0.1-SNAPSHOT.war /usr/local/tomcat/webapps/demo.war# 解压war包 & 删除war包WORKDIR /usr/local/tomcat/webappsRUN unzip dem
2021-10-31 22:22:28
183
原创 远程debug tomcat容器(docker)
1、使用官方tomcat镜像docker pull tomcat:82、创建容器:docker run -d -p 8086:8080 -p 8000:8000 --name debug-tomcat tomcat:8其中,8086用于访问服务,8000用于远程debug3、进入tomcat容器4、执行以下命令,开放tomcat debug端口vim /usr/local/tomcat/bin/catalina.sh在最开头增加以下语句:JAVA_OPTS="$JAVA.
2021-10-31 11:50:56
647
原创 物理机centos7 docker启动tomcat无法访问的问题
现象:无法访问此网站docker安装注意事项1.必须使用iptables防火墙2.检查bridge id是否以下格式[root@bogon network-scripts]# brctl showbridge name bridge id STP enabled interfacesdocker0 8...
2020-05-02 11:18:10
1038
3
原创 vbox 配置多台centos固定ip互相访问
创建centos 1,把需要的环境搭好,然后使用vbox的克隆一台相同的centos 2,注意是完成复制不是链接centos1 网络配置:vi /etc/sysconfig/network-scripts/ifcfg-< interface-name>例如:/etc/sysconfig/network-scripts/ifcfg-enp0s3IPADDR你想分配的IP地址N...
2019-04-27 08:29:31
781
原创 RMI Demo
RMI远程方法调用远端接口【MyRemote.java】MyRemote 实现类【MyRemoteImpl.java】客户端【MyRemoteClient.java】远端接口【MyRemote.java】package rmi;import java.rmi.Remote;import java.rmi.RemoteException;/** * Created by lxh on...
2019-04-02 22:42:49
340
原创 mysql创建用户、授权等
1.新建用户*1.1 登录MYSQL: mysql>mysql -u root -p; mysql>密码 1.2 创建用户: mysql> insert into mysql.user(Host,User,Password) values(“localhost”,”test”,password(“123”)); 创建了一个名为:test 密码为:123的用户。 “localhost”:是
2017-08-02 22:12:18
450
1
原创 http访问svn搭建配置
准备阶段: httpd-2.4.27-x86-vc11 Setup-Subversion-1.8.8-1.msi TortoiseSVN-1.8.1.24570-x64-svn-1.8.1.msi安装软件: 配置apache24 1. 解压httpd-2.4.27-x86-vc11得到apache24,把apache24复制到D盘的根目录 2. 修改配置文件httpd.conf①修改
2017-07-31 20:14:23
488
原创 lucene6.1.0 for linux 学习一:配置
1、首先要注意的是:检查你的 jdk 是否为1.8 以上 ,命令:java -version 2、if 第一步=false then 自行下载 jdk安装 安装:tar -zxvf jdk-8u11-linux-i586.tar.gz 这些自行百度 3、下载 lucene-6.1.0 官网:下载链接 4、同样解压,然后 ①在core文件夹里面找到lucene-core-6.1.0.jar;
2016-08-21 17:48:05
1452
转载 Android开发笔记(八十五)手机数据库Realm
原文:http://blog.youkuaiyun.com/aqi00/article/details/51145001Realm应用背景Android自带的SQLite数据库,在多数场合能够满足我们的需求,但随着app广泛使用,SQLite也暴露了几个不足之处:1、开发者编码比较麻烦,而且还要求开发者具备SQL语法知识;2、SQLite默认没有加密功能,手机一旦丢失容易导致数据库被破解;
2016-06-16 00:38:22
6131
2
原创 php在记事本中换行的问题
用就可以解决了,\n行不通的for ($distance = 50; $distance <= 250; $distance += 50) { echo "<tr> <td align=\"right\">".$distance."</td> <td align=\"right\">".($distance / 10)."</td> </tr><b
2016-04-24 16:36:19
1423
原创 表格布局页面
本文用到了两个表格,一个是大表格,一个是内嵌在大表格里面的成绩排名表格用绝对定位相对比较好控制布局!效果图:.html<!doctype html><html><head><meta charset="gb2312"><title>表格布局</title><link rel="stylesheet" href="style.css" type="text/css"></head><body
2015-10-21 16:57:06
1488
原创 汉诺塔
#include<stdio.h>void hannuota(int n, char A, char B, char C){ if (n == 1) printf("把第%d个盘子从%c柱子移动到%c柱子\n", n, A, C); else { hannuota(n - 1, A, C, B); printf("把第%d个
2015-10-20 20:39:11
476
原创 快速排序
思想就是:把比某个数大的数放到同一边,把比某个数小的数放到另一边,然后就是重复递归调用。 快排算法也叫分治法。#include<stdio.h>void QuickSort(int *a, int low, int high);//调用递归排序int FindPos(int *a, int low, int high);//找中轴数int main(){ int a[6] = { 0,
2015-10-19 13:28:09
383
原创 网页点名(下拉菜单版本)
效果图:First,把名单另存为.htmlSecond,把生成的table复制到html里面(位置随便),在给每个table一个idThird,看代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html> <head> <
2015-10-15 23:38:00
1233
原创 计算机选课程序(C#实验)
效果图:关键步骤:按钮rb1和rb2要关联First_CheckChanged()函数,即按钮的事件CheckedChanged里输入First_CheckChanged。当按钮的Checked检查是就会执行First_CheckChanged()函数,实现在TextBox里面输出信息。当关联First_CheckChanged()函数时,代码里面自动添加这个函数的代码代码:using Syst
2015-10-09 20:42:19
1686
原创 JS点名神器
效果图:.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="
2015-10-08 01:27:59
4515
2
原创 注册页面
效果图:注册页面.html<!doctype html><html><head><meta charset="gb2312"><title>注册页面</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><div class="All"><div class="top"></div><
2015-10-06 17:49:23
1313
原创 导航菜单栏制作
(做法一)效果图:导航菜单.html<!doctype html><html><head><meta charset="gb2312"><title>导航菜单</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><div id="daohang"><div id="d1"><a hre
2015-10-06 03:56:19
563
原创 网页布局(div)
简单的网页布局(注释就不写了,看看就懂了,不懂看前面的两个博文都有详细讲解)效果图:网页布局.html<!doctype html><html><head><meta charset="gb2312"><title>网页布局</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><div
2015-10-06 02:29:35
900
原创 盒子模型(div)
看代码说话!盒子模型.html<!doctype html><html><head><meta charset="gb2312"><title>盒子模型</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><div id="first">盒子模型1</div><div id="seco
2015-10-06 01:46:18
1024
原创 流式布局(div)
看代码说话吧!流式布局.html<!doctype html><html><head><meta charset="gb2312"><title>流式布局</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><div id="first">第1个div</div><div id="se
2015-10-06 01:17:31
2395
原创 绝对路径/相对路径(div)
掌柜的上代码:div.html<!doctype html><html><head><meta charset="gb2312"><title>div文档</title><link rel="stylesheet" href="style.css" type="text/css"></head><body><h2 class="pos_abs">这是带有绝对路径的标题</h2><di
2015-10-06 00:41:11
1077
原创 Css用法
样式分为:直接样式、内部样式、外部样式(推荐)直接样式:直接样式内部样式:<!doctype html><html><head><meta charset="gb2312"><title>内部样式</title><style type="text/css">p{color:#999}</style></head><body><p>这是一个段落1</p></body></html
2015-10-04 13:59:28
423
原创 选择器.HTML
<!doctype html><html><head><meta charset="gb2312"><title>选择器</title><style>#fist{color:#00F;font_weight:bold}//id选择器用#.second{color:#FF0;font-size:20px}//类选择器用.</style></head><body><p>这是标签选择器
2015-10-03 17:52:18
466
原创 打开新的页面.HTML
<p>友情链接:<a href="http://blog.youkuaiyun.com/lxh_gdmu?viewmode=contents" target="_blank"><font color="#FFFFFF">桑海田</font></a></p>即在连接后面加上target="_blank"另外打开新页面不关闭原页面,target="_parent"/"_self"/"_top":关闭原页面,打开新页
2015-10-03 15:49:57
586
原创 插入音乐.HTML
<embed src="Beyond - 可否冲破.mp3" width="80" height="30"autostart=true controls="middleconsole">直接在<body> 与</body>间插入即可,其中,width代表播放器宽度,height代表高度,autostart=true自动播放,controls="middleconsole"播放器居中。
2015-10-03 02:40:22
584
原创 图片摆置.HTML
<p><img src="05.gif" width="100" height="100" ; style="position:absolute; left:530px; top:100px; "></p><p><img src="06.gif" width="100" height="100" ; style="position:absolute; left:740px; top:100px;
2015-10-03 02:30:53
340
原创 单行、多行 注释.HTML
Html 单行: 多行: javascript 单行:// 多行:/* */ Vbscript 单行:’ 多行:’ ASP <% %>中: 单行:’ 多行:’
2015-10-02 11:50:49
5701
原创 点名神器
点名神器安装包:链接: http://pan.baidu.com/s/1gdk5mqJ 密码: myf3效果图:代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using
2015-09-22 18:29:00
869
原创 按钮应用(剪切,复制,粘贴)
效果图:滚动条的制作:1 把工具栏中拖panel到窗体里面,然后设置其属性AutoScroll=true;2 把工具栏中的TextBox拖到panel中,要实现多行设置其属性Multiline=true3 右边的功能看下面代码:using System;using System.Collections.Generic;using System.ComponentModel;using Syst
2015-09-21 20:05:17
603
原创 成绩查询程序
实现功能:1 检查用户是否存在:若不存在,则输出用户不存在;若存在,则检查学号是否正确:若正确,则输出成绩,若不存在,则输出学号不正确;2 实现从文本读取用户名、学号、成绩。3 一个按钮实现查询,一个实现重新输入,一个实现退出程序本程序的三个文本:效果图:1 用户不存在2 学号不正确3查询成功代码如下:using System;using System.Collections.Generic;u
2015-09-20 02:26:50
1168
原创 timer控件
功能:实现控制数字变化过程功能效果图代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.T
2015-09-19 22:35:49
604
原创 随机点名程序.cs
先来一睹效果图:代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;u
2015-09-19 21:00:35
1293
原创 三星电脑重装系统经验总结
**这个例子是从win8系统转装win7的步骤**1 Fn+F2进入bios2 选择BOOT选项–Secure Boot设置为”Disabled”选择OS Mode Selection设置为CSM OS,选择Advanced菜单下Fast Bios Mode设置为”Disabled” 按F10键保存退出。3 启动硬盘分区软件diskgenius(一般都是这个分区软件,这个PE系统自带
2015-09-19 14:50:21
877
原创 用户登录界面.cs
效果图:代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using
2015-09-17 21:46:46
2029
原创 窗体方法.cs
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Wi
2015-09-17 01:17:47
423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人