javaweb
文章平均质量分 60
昆仑五道士
什么时候报错,这是个玄学问题。但是见多了牛鬼蛇神,就自然开天眼了。本道修行尚短,还在和牛鬼蛇神肉搏,求各位大神赐教,指点。本人必将多读各大神、道友经验,求得早日得道成佛(tu)。愿和道友们一起打怪,变的更强!!!
展开
-
Docker学习
1.Docker centos7_64环境配置curl -O http://pigx.vip/os7init.shsh os7init.sh root1root1 为centos用户名2.Linux 免登陆设置ssh 192.168.xxx.xxxssh-keygenssh-copy-id root@192.168.xxx.xxdocker安装yum-config-manager --add-repo http://download.docker.com/linux/centos/do原创 2021-04-11 19:43:56 · 110 阅读 · 0 评论 -
springboot+swagger3.0访问后台地址
swagger下面版本无论访问:http://localhost:8080/swagger-ui.html还是http://localhost:8080/swagger-ui/index.html都报404 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId>原创 2021-04-06 18:41:52 · 2471 阅读 · 0 评论 -
centos ftp图片服务器搭建
centos7下载地址:http://mirrors.aliyun.com/centos/7/isos/x86_64/第一使用centos7 基础设施服务器 以前都是用基本网页服务器因为是基础设施服务器所以就不用安装ssh连接的包了,可以直接用ssh连接上去1、nginx安装1:安装工具包 wget、vim和gccyum install -y wget yum install -y vim-enhanced yum install -y make cmake gcc gcc-c++原创 2021-03-26 17:03:38 · 286 阅读 · 0 评论 -
vue element tree lazy
<template> <div class="vcid"> <el-button @click="handleStart">选择类目</el-button> <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> <meltree @check-change="ch原创 2021-03-24 16:40:10 · 509 阅读 · 0 评论 -
axios跨域问题
现在遗留问题:vue端解决跨域问题的方案暂时没有实现。springmvc4.1解决方案<!-- 配置拦截器解决跨域问题 --><mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/**" /> <mvc:exclude-mapping path="/rest/item/*" /> <bean class="com原创 2021-03-21 19:45:19 · 64 阅读 · 0 评论 -
SpringBoot Communications link failure
使用SpringBoot报错:Communications link failure吐槽一下springBoot集成太厉害了,我代码里面没一个HikariPool-3 就直接报错。代码都看不见全靠蒙。还有热部署很爽。找了很久才看见这个问题点。java.net.UnknownHostException: mysql大意了把mysql 改成localhostjdbc:mysql://localhost:3306/vueblog?useUnicode=true&useSSL=fals原创 2021-03-18 07:49:22 · 405 阅读 · 0 评论 -
Ubuntu Redis3.0.7安装测试
Redis官网下载地址: http://www.redis.cn/download.htmlRedis 命令https://www.w3cschool.cn/redis/redis-commands.html一、安装说明:Redis是c语言编写要gc++wget http://download.redis.io/releases/redis-6.0.6.tar.gztar xzf redis-6.0.6.tar.gzcd redis-6.0.6makemkdir ../redis-path原创 2021-03-16 21:21:19 · 177 阅读 · 0 评论 -
Ubuntu安装activeMQ+spring整合
一、安装1、 直接官网下载activeMQ官网:http://activemq.apache.org/2、上传服务器rz3、解压tar -zxf apache-activemq-5.15.14-bin.tar.gzmv apache-activemq-5.15.14 activemq4、开启activeMQ服务cd /data/activeMQ/activemq/bin/linux-x86-64/./activemq start根据自己的服务器选择linux-x86-64原创 2021-03-16 19:40:37 · 92 阅读 · 0 评论 -
服务器上 Tomcat+solr
9个基于Java的搜索引擎框架SpringBoot整合ElasticSearch搜索引擎solr官方网站:http://lucene.apache.org/solr/solr下载网站:http://www.eu.apache.org/dist/lucene/solrTomcat官网地址:https://archive.apache.org/dist/tomcat/1.安装环境solr是java开发的,安装solr需要有jdk使用Tomcat部署,需要安装Tomcat1.1.安装jdkjdk原创 2021-03-12 17:00:25 · 85 阅读 · 0 评论 -
zookeeper org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-481a15ff
问题描述:我在Ubuntu服务器上开启Tomact用浏览器去访问的时候报这个错:而且关闭Tomcat去访问8080端口一样报这个错org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-481a15ff逐步排查最终确定是在Ubuntu上开启了一个./zkServer.sh zookeeper服务的影响当关闭zookeeper服务开启Tomcat的时候正常访问挖个坑啊,zookeeper可能内置了jetty。...原创 2021-03-12 16:08:22 · 4335 阅读 · 6 评论 -
Ubuntu20.0安装FastDFS
环境基础:https://blog.csdn.net/qq_37596010/article/details/114408135安装FastDFS是根据:FastDFS入门一篇就够本文根据这篇文章写的1、安装GCC编译器:sudo apt install build-essential参考文章:如何在Ubuntu 18.04上安装GCC编译器#apt install lrzsz 这个是基于finalShell 上传文件要的2、下载的包都存放在~/caibh/fdfs-package目录下原创 2021-03-08 21:39:58 · 987 阅读 · 8 评论 -
通用Mapper BaseServiceImpl批量删除
//绝对不能加@Service注解,因为构造方法需要获取父public class BaseServiceImpl implements BaseService {//spring4的新特性,泛型注入@Autowiredprivate Mapper mapper;private Class clazz;//声明泛型的classpublic BaseServiceImpl(){ //获取父的Type的数据 Type type = this.getClass().getGenericSuper原创 2021-03-06 15:48:47 · 1118 阅读 · 1 评论 -
Windows版 Nginx使用
1、先解压Nginx2、修改/conf/nginx.confserver {listen 80;server_name xxxx.taotao.com; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; proxy_pass http://127.0原创 2021-03-06 14:25:36 · 110 阅读 · 0 评论 -
maven报错:Failed to execute goal on project的一种可能
maven报错:Failed to execute goal on projec的一种可能是在maven本地仓库有.lastUpdated文件存在,导致无法正常下载包。方法删除.lastUpdated文件(不一定是.lastUpdate后缀的文件 lastUpdated也可能在中间,我这次遇到的是m2e-lastUpdated.properties文件删除)参考:maven报错:Failed to execute goal on project...原创 2021-03-06 07:42:09 · 1116 阅读 · 0 评论 -
环境Win10装VM运行Ubuntu20.04安装zookeeper (Ubuntu为新机)
--------------------zookeeper环境配置和安装-----------------------环境Win10装VM运行Ubuntu20.04 (Ubuntu为新机)(吐槽一下第N次安装了)1、刚刚进去要 sudo apt-get update (不然无法使用sudo apt install net-tools命令无法查询IP,可能还有其他命令用不了)2、安装 sudo apt install net-tools3、安装java环境 sudo apt install ope原创 2021-03-05 18:51:42 · 396 阅读 · 0 评论 -
springBoot配置文件
## ★☆★☆★☆★☆★☆ spring boot 配置中心 ★☆★☆★☆★☆★☆#springBoot application.properties 基础配置复制代码文件编码banner.charset= UTF-8文件位置banner.location= classpath:banner.txt日志配置日志配置文件的位置。 例如对于Logback的classpath:logback.xmllogging.config=%wEx#记录异常转载 2021-03-05 08:10:28 · 340 阅读 · 1 评论 -
springMVC直接传回jsp源码
controller设置web.xmls设置运行结果:删除*.jsp运行结果bug找了一天,Tomcat、浏览器都换了,也看了很多博客,最后解决是跑一个类似不出问题的项目,做小量修改才找到问题,记录一下。另看到一篇类似问题的文章,感觉很牛逼,记录一下:https://blog.csdn.net/l1509214729/article/details/81110394...原创 2021-03-03 16:59:26 · 89 阅读 · 1 评论