自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 springboot java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)

报异常:java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)是database的配置写错了spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://1...

2018-09-25 17:36:31 5618 5

原创 使用@Convert注解将List等不是基本数据类型的变量存入的数据库中

@Convert 可将不是基本数据类型的数据按照一定的格式转换成可存入数据库的基本类型,类似于自动拆装箱操作。 1、新建Converter类 2、实现javax.persistence.AttributeConverter包下的AttributeConverter接口 3、重写convertToDatabaseColumn()和convertToEntityAttribute() 4、在...

2018-09-13 00:15:30 4747 2

原创 springboot 配置logback 根据日志级别进行分级保存

1、在resources包下新建logback-spring.xml 文件logback-spring.xml2、logback-spring.xml<?xml version="1.0" encoding="utf-8" ?><configuration> <!-- ConsoleAppender

2018-09-11 01:07:25 1259

原创 Java 通过反射来获取对象的成员变量和其值的例子

/** * @author peter * 2018/9/4 19:04 */public class Reflect { private String name; private int age; private String cupSize; public Reflect(String name, int age, String cupSize) {...

2018-09-04 19:22:27 9274

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除