
SpringBoot
Mr.ChowSit
古人云:survive in disaster perish in comfort
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot整合MyBatis-Plus实战+自动填充+逻辑删除
实体类@Getter@Setter@TableName("user")public class User { @TableId(type = IdType.ASSIGN_UUID) private String id; private String name; private Integer age; private String email; @TableField(fill = FieldFill.INSERT) private S.原创 2020-08-26 22:51:55 · 564 阅读 · 0 评论 -
SpringBoot整合FastDFS-6.0.4(内网/公网IP配置)
FastDFS安装GitHubhttps://github.com/happyfish100下载https://github.com/happyfish100/libfastcommon/archive/V1.0.42.tar.gzhttps://github.com/happyfish100/fastdfs/archive/V6.04.tar.gz安装FastDFStar -xzvf libfastcommon-1.0.42.tar.gzcd libfa..原创 2020-08-24 00:14:22 · 769 阅读 · 0 评论 -
SpringBoot通过idea远程debug
idea新建一个Remote远程服务器启动命令java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 \-jar dm-admin-service.jar --spring.profiles.active=releaseListening for transport dt_socket at address: 8888本地idea启动debugConnected to t...原创 2020-08-25 11:58:17 · 260 阅读 · 0 评论 -
Spring事物的传播策略
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:.原创 2020-07-03 10:25:24 · 265 阅读 · 0 评论 -
如何优雅的处理SpringBoot中的多个实现类
接口public interface MyService { String get();}实现一@Servicepublic class MyServiceImpl1 implements MyService { @Override public String get() { return "Impl_1"; }}实现二@Servicepublic class MyServiceImpl2 implements MyServi原创 2020-06-10 20:48:51 · 1293 阅读 · 0 评论 -
SpringBoot整合RabbitMQ
配置依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId></dependency>配置参数spring.rabb...原创 2020-02-16 19:40:45 · 282 阅读 · 0 评论 -
go.sh
go.sh脚本#!/usr/bin/env bashprojectName=group-servicetarget=$1port=$2config_uri=$3health_url="http://127.0.0.1:$port/actuator/health"echo "target = "$targetpid=`ps -ef |grep 'java' |grep ...原创 2020-02-14 16:58:31 · 683 阅读 · 0 评论 -
SpringBoot中手动实现JDBC连接池
创建一个工具类:JDBCUtilspackage com.example.demo.Util;import lombok.extern.slf4j.Slf4j;import java.io.InputStream;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLExcepti...原创 2019-11-24 20:27:15 · 2391 阅读 · 0 评论 -
Swagger快速入门
添加依赖<dependency> <groupId>com.spring4all</groupId> <artifactId>swagger-spring-boot-starter</artifactId> <version>1.7.0.RELEASE</version></dependency...原创 2019-11-06 20:20:29 · 219 阅读 · 0 评论 -
修改SpringBoot中RedisTemplate默认序列化为Json
背景最近在使用redis保存对象时发现,对象是被序列化之后存入到redis中的,这样就不能直观的看到对象的属性信息,所以还是希望使用简单的json格式来保存对象到redis中。那让我们来查看一下SpringBoot中默认的RedisTemplate的实现是什么/** * Helper class that simplifies Redis data access code. * ...原创 2019-09-25 21:04:33 · 3008 阅读 · 0 评论