加载中
mysql的数据库连接配置

mysql8.0配置: spring: datasource: url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false driver-class-name: com.mysql...

Springboot项目启动完成后,自动打开浏览器的配置

增加命令行执行类 @Component public class StartSuccessful implements CommandLineRunner { @Value("${open.browser.url}") private String url = "http://localhost:8001/swagger-ui.html...

java 线程池使用与结构解析

线程池什么情况下使用,解决什么问题 线程池的使用 线程池的结构解析 线程池什么情况下使用,解决什么问题 线程的创建和销毁是要占用一定的资源的,创建线程会直接向系统申请,调用系统函数进...

linux防火墙查看状态firewall、iptable

一、iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables res...

Linux常用运维使用指令

查询占用CPU最高的前10个进程 ps aux|grep -v PID|sort -rn -k +3|head 查询占用内存最大的前10个进程 ps aux|grep -v PID|sort -rn -k +4|head......

ELK搭建(一):实现分布式微服务日志监控

1、目标 本次我们搭建的目标是通过ELK来收集微服务中的日志。本期主要以实操、快速搭建为主进行讲解,部分基础概念不做过多描述,后续会再单独出几期博客说明。更多ELK搭建可以关注本专栏,后...

virtual box网络连接

配置虚拟机虚拟机IP及网络,使虚拟机可以连接网络 输入登录账户root,回车; 输入安装过程中设置的root的密码,回车。即可登录到centos7系统中。 1)、修改IP a.进入ip的配置文件路径: 输入...

allowedOrigins cannot contain the special value "*" the "Access-Control-Allow-Origin"

问题: springboot项目,出现跨域异常: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be...

git使用,从初始仓库到上传到远程仓库(纯指令)

具体操作如下: 1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库 git init 2、把文件添加到版本库中,使用命令 git add . 添加到暂存区里面去,不要忘记后面的小...

修改已登录的mysql的密码

忘记密码后,但是客户端之前记住了,需要修改已登录的mysql的密码: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; Query OK, 0 rows affected (0.02 sec) mysql> FLUSH P...

2023/03/18 09:32
72
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection;

异常信息: ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeou...

.impl.io.MalformedByteSequenceException: 2 字节的 UTF-8 序列

Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 2 字节的 UTF-8 序列 解决方案: 把出现问题xml文件中的UTF-8修改为UTF8即可且看如下:......

mysql设置ID为自增

还没有建表 CREATE TABLE IF NOT EXISTS user( id INT UNSIGNED AUTO_INCREMENT, name VARCHAR(100) NOT NULL, PRIMARY KEY ( id ) )ENGINE=InnoDB DEFAULT CHARSET=utf8; 已建好表 alter ta...

2023/03/08 17:26
119
定时组件介绍

定时器是一个很基础的应用组件,平时可以随时接触到。 在Linux中接触到的是crontab 在java环境中 单机版本的有: java的util包的Timer 线程池中的ScheduledThreadPool Spring框架中的Spring ...

docker: Error response from daemon: too many requests

docker run 出现异常信息: Unable to find image 'openjdk:8' locally docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase ...

如何给Linux硬盘分区?[详细教程]

“Windows下每一个分区都有一个盘符,比如E盘,而E盘下有可有很多目录。但是Linux是怎么回事,什么是挂载点?目录和分区的关系是什么?哪些必须分区?用惯Windows,理解Linux的文件系统真费力...

关于复制代码到MySQL中,多出好些个 Display all 785 possibilities? (y or n),询问语句的问题,

拷贝代码到mysql客户端执行,然后出现以下异常: 是因为,在MySQL中,按下 两 次 tab键会出现 Display all 785 possibilities? (y or n) 语句, 所以,当你要使用的数据库中有连续的多于2个t...

Elasticsearch安装启动报错

异常信息如下: org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root at org.elasticsearch.bootstrap.Elasticsearch.init(Elas...

maven install本地jar

Linux中执行 mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-avro-serializer -Dversion=5.2.3 -Dpackaging=jar -Dfile=D:\kafka-avro-serializer-5.2.3.jar 在windo...

2023/02/07 10:44
64
VirtualBox搭建centos7虚拟机

参照这里:https://blog.csdn.net/weixin_41457635/article/details/126986104

没有更多内容

加载失败,请刷新页面

返回顶部
顶部