摘要: 1.linux 安装pcre报错“You need a C++ compiler for C++ support.”解决办法 解决: sudo apt-get install build-essential 2.Nginx启动出错“/nginx: error while loading shared 阅读全文
posted @ 2022-02-05 02:26 AlexFung 阅读(56) 评论(0) 推荐(0)
摘要: 配置java环境变量的方法在/etc/profile文件中添加如下内容,注销切换到root用户后java -version,javac等失效,没有环境配置 export JAVA_HOME=/opt/jdk1.8.0_321 export JRE_HOME=${JAVA_HOME}/jre expo 阅读全文
posted @ 2022-02-04 03:03 AlexFung 阅读(591) 评论(0) 推荐(0)
摘要: 检查防火墙状态 sudo ufw status verbose 允许SSH连接 sudo ufw allow ssh 允许自定义端口(该端口需要打开),假设允许3306端口连接 sudo ufw allow 3306/tcp 启用防火墙 sudo ufw enable 删除ufw规则: 根据规则编号 阅读全文
posted @ 2022-02-04 00:53 AlexFung 阅读(164) 评论(0) 推荐(0)
摘要: Ubuntu18.04LTS中想修改/固定IP地址需要修改 /etc/netplan/01-network-manager-all.yaml配置文件,下面是具体修改如下: 无需配置/etc/network/interfaces 重启网卡使用:netplan apply/service network 阅读全文
posted @ 2022-02-03 02:43 AlexFung 阅读(98) 评论(0) 推荐(0)
摘要: 出现错误:Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 参考:CSDN博主「shl一直在路上」 https://blog.csdn 阅读全文
posted @ 2022-01-19 00:44 AlexFung 阅读(362) 评论(0) 推荐(0)
摘要: 1、SpringBoot启动会加载大量的自动配置类 2、我们看我们需要的功能有没有在SpringBoot默认写好的自动配置类当中; 3、我们再来看这个自动配置类中到底配置了哪些组件;(只要我们要用的组件存在在其中,我们就不需要再手动配置了) 4、给容器中自动配置类添加组件的时候,会从properti 阅读全文
posted @ 2021-10-27 21:01 AlexFung 阅读(104) 评论(0) 推荐(0)
摘要: 虚线部分需用户配置,实线部分为springmvc写好的 假设url为http://localhost:8080/SpringMVC/hello,后台接收到url请求后, 1,2,3,4:DispatcherServlet(调度器servlet)调用HandlerMapping处理器映射,再通过Han 阅读全文
posted @ 2021-09-11 20:53 AlexFung 阅读(29) 评论(0) 推荐(0)
摘要: <!--针对spring依赖注入@Resource使用--> <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.2</version> < 阅读全文
posted @ 2021-03-15 03:23 AlexFung 阅读(247) 评论(0) 推荐(0)
摘要: 在网上找到的PropertiesUtil类,继承properties并改写其中方法 package com.itheima.util; import java.util.*; /** * @date 2021/3/7 - 4:04 */ public class OrderedProperties 阅读全文
posted @ 2021-03-07 14:32 AlexFung 阅读(390) 评论(0) 推荐(0)
摘要: 应该是tomcat的jar包和maven的jar包冲突 在pom.xml中找到 <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-servlet-api</artifactId> <version>7.0.47< 阅读全文
posted @ 2020-02-23 03:42 AlexFung 阅读(170) 评论(0) 推荐(0)