摘要: 1.添加pom.xml <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.3</version> </dependency> <!-- https://m 阅读全文
posted @ 2019-11-28 17:57 怒吼的萝卜 阅读(263) 评论(0) 推荐(0)
摘要: 查看防火墙状态 # 显示防火墙状态 firewall-cmd --state # 或 systemctl status firewalld 开机自启防火墙 systemctl enable firewalld 禁止防火墙开机自启 systemctl disable firewalld 临时开启防火墙 阅读全文
posted @ 2019-11-22 11:36 怒吼的萝卜 阅读(29622) 评论(0) 推荐(0)
摘要: 1、在linu上部署好tomcat后,准备启动时报错: Cannot find bin/catalina.sh The file is absent or does not have execute permission This file is needed to run this program 阅读全文
posted @ 2019-11-22 10:59 怒吼的萝卜 阅读(2195) 评论(0) 推荐(0)
摘要: spring可以通过applicationContext.xml进行配置接口实现类 applicationContext.xml中可以添加如下配置: 在application.properties中添加你的实现类配置 注意:在applicationContext.xml中配置后,不要用Spring的 阅读全文
posted @ 2019-11-20 11:33 怒吼的萝卜 阅读(1002) 评论(0) 推荐(0)
摘要: web.xml加载spring配置文件的方式主要依据该配置文件的名称和存放的位置不同来区别,目前主要有两种方式。 1. 如果spring配置文件的名称为applicationContext.xml,并且存放在WEB-INF/目录下,那么只需要在web.xml中加入以下代码即可 <listener> 阅读全文
posted @ 2019-11-19 18:04 怒吼的萝卜 阅读(1022) 评论(0) 推荐(0)
摘要: 1.下载Spring spring-framework-5.0.4.RELEASE下载地址:https://github.com/spring-projects/spring-framework/releases 2.下载Gradle编译 由于spring是采用Gradle编译,所以必须下载Grad 阅读全文
posted @ 2019-11-19 17:42 怒吼的萝卜 阅读(478) 评论(0) 推荐(0)
摘要: 1、安装Git Bash https://git-scm.com/downloads 2、鼠标右键git bash here 3、执行以下命令: ① cd ~/.ssh/ 【如果没有对应的文件夹,则执行 mkdir ./.ssh】 ② git config --global user.name "x 阅读全文
posted @ 2019-11-15 10:42 怒吼的萝卜 阅读(243) 评论(0) 推荐(0)
摘要: Maven下载路径 https://archive.apache.org/dist/maven/maven-3/ 查找需要引入的包路径时,可以在maven仓库进行查找 maven仓库地址:https://mvnrepository.com/ 阅读全文
posted @ 2019-11-11 15:56 怒吼的萝卜 阅读(651) 评论(0) 推荐(0)
摘要: 方法步骤如下: 1、首先打开计算机,在计算机内启动谷歌浏览器,在地址栏中输入:chrome://version 2、然后在界面内复制个人资料路径里的路径。 3、将它粘贴到资源管理器的地址栏中,按回车进入。 4、在界面内找到并单击进入”Pepper Data“文件夹。 5、进入”Shockwave F 阅读全文
posted @ 2019-11-02 18:45 怒吼的萝卜 阅读(11311) 评论(0) 推荐(0)
摘要: 1. 第一步检测语法是否正确 @Value("${test}") private String test; 2.第二步检测配置文件中是否有进行配置 url=testusername=usernamepassword=password 3.第三步检测是否增加了@Component注解 在spring中 阅读全文
posted @ 2019-10-25 22:34 怒吼的萝卜 阅读(11513) 评论(0) 推荐(1)
摘要: 一 官网下载 mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz 目前最新为5.7.16,可以直接下载mysql-5.7.16-linux-glibc2.5-x86_64.tar.gz, 这里用的是5.7.12,未下载最新的,不过,安装方式一样。 官网地址: http 阅读全文
posted @ 2019-10-22 17:15 怒吼的萝卜 阅读(1991) 评论(0) 推荐(0)
摘要: springboot项目打成jar包,默认读取的classpath路径下的配置文件,config.properties是自定义配置文件。 如果要把config.properties配置放在jar包外面,方便修改配置, 1.在启动类或者配置类上添加@PropertySource注解,value参数配置 阅读全文
posted @ 2019-10-22 11:05 怒吼的萝卜 阅读(5372) 评论(0) 推荐(0)
摘要: mysql的下载路劲 https://dev.mysql.com/downloads/mysql/ 阅读全文
posted @ 2019-10-21 16:26 怒吼的萝卜 阅读(275) 评论(0) 推荐(0)
摘要: 一般将项目分为两层:服务层和表现层(视图层),通常我们把服务层打包成jar,而把视图层的包打成war包。 仔细对比可以发现: jar包中包含了你写程序的所有服务或者第三方类库,它通常是作为幕后工作者,为视图层用户与之交换数据处理的一个服务者,jar文件格式以Zip文件格式为基础,与Zip不同的是,它 阅读全文
posted @ 2019-10-20 12:53 怒吼的萝卜 阅读(1116) 评论(0) 推荐(0)
摘要: 1.进入jar包所在文件夹中 2.启动jar,将jar在后台运行,并且记录jar的pid 命令为 : nohup java -jar test.jar (同jar包的配置文件要在jar包同级目录内,如perporties文件) 3.查看运行的jar的pid,看看jar程序是否运行 :ps -ef|g 阅读全文
posted @ 2019-10-20 11:15 怒吼的萝卜 阅读(1195) 评论(0) 推荐(0)