摘要:
@Target({ElementType.METHOD, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Constraint(validatedBy =MyConstraintValidator.class ) public @in 阅读全文
摘要:
最近在整理springsecurity时,发现一个问题 The bean 'metaDataSourceAdvisor',could not be registered.A bean with that name has already been defined 找了半天,看报错也知道某个Bean重 阅读全文
摘要:
package wangbiao.config.minio; import com.fasterxml.jackson.core.JsonProcessingException; import io.minio.*; import io.minio.errors.*; import io.minio 阅读全文
摘要:
阅读全文
摘要:
mongodb: ObjectId 的结构: _id 是集合中文档的主键,用于区分文档(记录),_id自动编入索引。默认情况下,_id 字段的类型为 ObjectID,是 MongoDB 的 BSON 类型之一。如果需要,用户还可以将 _id 覆盖为 ObjectID 以外的其他内容。 Object 阅读全文
摘要:
这里是给新手介绍的 springboot默认启动是连接数据库的 经常很多人蒙蔽, //无数据源启动 @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAut 阅读全文
摘要:
1.Spring Boot 访问静态资源的位置(优先级按以下顺序) classpath默认就是resources,所以classpath:/static/ 就是resources/static/ classpath:/META‐INF/resources/ classpath:/resources/ 阅读全文
摘要:
package com.wangbiao.security.config; import com.alibaba.fastjson.support.spring.FastJsonRedisSerializer; import org.springframework.context.annotatio 阅读全文
摘要:
/** * @Null 被注释的元素必须为 null * @NotNull 被注释的元素必须不为 null * @AssertTrue 被注释的元素必须为 true * @AssertFalse 被注释的元素必须为 false * @Min(value) 被注释的元素必须是一个数字,其值必须大于等于 阅读全文
摘要:
package com.inforcreation; import org.springframework.util.CollectionUtils; import java.util.ArrayList; import java.util.List; /**" * 桶排序(Bucket sort) 阅读全文