摘要: SpringCloud 整合Spring Boot项目部署是需要添加相关插件: <build> <plugins> <plugin> <groupId>org.springframework</groupId> <artifactId>spring-boot-maven-plugin</artifa 阅读全文
posted @ 2021-08-12 16:19 曹丽是我女朋友。 阅读(52) 评论(0) 推荐(0) 编辑
摘要: import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation. 阅读全文
posted @ 2021-08-12 11:45 曹丽是我女朋友。 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: Json 序列化的三种方式: 1.Gson @SerializedName("idcard") private String idcardNo; 2.fastJson @JSONField(name="idcard") private String idcardNo; 3.JackSon @Json 阅读全文
posted @ 2021-08-11 10:35 曹丽是我女朋友。 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 检查当前对象是否为空,当对象为NULL时,直接返回TRUE,否则通过反射遍历里面参数,有数据则返回FALSE. 1 /** 2 * Determine whether the attribute values in the object are all empty. 3 * 4 * @param o 阅读全文
posted @ 2021-08-09 10:12 曹丽是我女朋友。 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1 public class DBCPUtils { 2 3 /** 4 * DBCP数据库连接池 5 */ 6 private static DataSource source; 7 8 static { 9 try { 10 Properties pros = new Properties(); 阅读全文
posted @ 2021-07-28 10:54 曹丽是我女朋友。 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1 public class JDBCUtils extends Database { 2 /** 3 * General query based on different tables. 4 * 5 * @param clazz clazz 6 * @param sql sql 7 * @para 阅读全文
posted @ 2021-07-13 15:41 曹丽是我女朋友。 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 public class JDBCUtils { 2 3 public static Connection getConnection() throws Exception { 4 InputStream is = ClassLoader.getPlatformClassLoader().get 阅读全文
posted @ 2021-07-12 22:30 曹丽是我女朋友。 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * Query the sql tool class of a single class. 3 * @param sql sql 4 * @param args args 5 * @return class 6 */ 7 public Tab getQuerySql(String s 阅读全文
posted @ 2021-07-12 20:01 曹丽是我女朋友。 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 通过HashMap进行缓存 private static Map<String, Object> cacheMap; public static Object getCache(String key, Object defaultValue) { Object obj = getCacheMap() 阅读全文
posted @ 2021-03-30 17:13 曹丽是我女朋友。 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 启动项目突然报错,异常信息为一下情况: 解决方法: 修改当前项目下: .idea\workspace.xml 找到<component name="PropertiesComponent">,在里面添加<property name="dynamic.classpath" value="true" / 阅读全文
posted @ 2021-03-30 10:08 曹丽是我女朋友。 阅读(104) 评论(0) 推荐(0) 编辑