摘要: 一.Round用法 1、round(x,d) ,x指要处理的数,d是指保留几位小数 这里有个值得注意的地方是,d可以是负数,这时是指定小数点左边的d位整数位为0,同时小数位均为0; 2、round(x) ,其实就是round(x,0),也就是默认d为0; 下面是几个实例 1、查询: select r 阅读全文
posted @ 2021-04-02 16:47 sea-gull 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Git命令 新的代码初始化流程: 第一步 创建git管理空间:git init 第二步 添加文件到暂存区: git add git add -A -all 【把所有文件加入到暂存区】 git add 文件名1 文件名2 文 件名 3 Git status 查看当前工作空间状态。 git add 。全 阅读全文
posted @ 2021-04-02 16:45 sea-gull 阅读(65) 评论(0) 推荐(0) 编辑
摘要: SpringCloud 1. Eureka /jʊ'rikə/ Eureka包含了服务器端和客户端的组件,服务端被称作服务注册中心,用于提供服务的祖册与发现。 客户端包含服务的消费者与服务生产者。 在应用程序运行时,Eureka客户端向注册中心注册自身提供的服务并周期性的发送心跳来更新它的服务租约。 阅读全文
posted @ 2020-03-14 18:36 sea-gull 阅读(192) 评论(0) 推荐(0) 编辑
摘要: SpringBoot WebMvcConfigurer详解 1.前言 在Spring Boot 1.5版本都是靠重写WebMvcConfigurerAdapter的方法来添加自定义拦截器,消息转换器等。SpringBoot 2.0 后,该类被标记为@Deprecated(弃用)。 官方推荐直接实现W 阅读全文
posted @ 2020-03-14 18:34 sea-gull 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: package com.cn.utils; import java.io.*; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.*; import javax.xml.transform.*; i 阅读全文
posted @ 2019-09-10 11:20 sea-gull 阅读(329) 评论(0) 推荐(0) 编辑
摘要: <!-- activeMQ坐标 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> <de 阅读全文
posted @ 2019-09-05 20:51 sea-gull 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Mysql Dpcker容器中: 启动mysql: service mysql start systemctl mysql start /etc/init.d/mysqld start 连接mysql: mysql -uroot -p 查看mysql是否启动:/etc/rc.d/init.d/mys 阅读全文
posted @ 2019-09-05 20:50 sea-gull 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一.批量杀死进程 ps -ef | grep nginx|awk '{print $2}' |xargs kill -9 二.强制复制文件到某一个文件夹 1.yes | cp -rf /usr/local/img/* /usr/local/img/images 2.\cp -rf /usr/loca 阅读全文
posted @ 2019-09-05 20:47 sea-gull 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.maven跳过测试打包 clean install -Dmaven.test.skip=true或者 添加坐标 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-sur 阅读全文
posted @ 2019-09-05 20:39 sea-gull 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 读取配置文件。在这里简单的实现以下。 写了两种加载的方式 第一种是: Thread.currentThread().getContextClassLoader().getResourceAsStream(path);这个是直接获取到src/resource/ 第二种是:InputStream inp 阅读全文
posted @ 2019-09-05 20:27 sea-gull 阅读(201) 评论(0) 推荐(0) 编辑