自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Ivan的博客

Java学习者

  • 博客(6)
  • 收藏
  • 关注

原创 mybatis-plus进阶配置

mybatis-plus进阶配置实体类存在数据库中没有的字段:注解配置该字段不进行映射@TableField(exist = false)数据库存在实体类没有的字段mybatis自动映射处理未知字段有三种策略:默认为none(不处理)warning:输出warn级别日志mybatis-plus: configuration: auto-mapping-unknown-column-behavior: warning2020-07-31 17:53:06|BATI

2020-11-05 17:52:39 602

原创 mybatis-plus简单配置

mybatis一对多,resultMap+collection<resultMap id="metadataMap" type="com.meicloud.sahara.component.metadata.dto.MetadataDTO"> <id property="metadataTableId" column="metadata_table_id"/> <result property="label" column="tlabel"/&

2020-11-05 17:51:53 1738

原创 spring boot获取上下文&获取bean

获取上下文环境注解自动注入@ResourceApplicationContext applicationContext;工具类实现ApplicationContextAware接口:重写set方法public interface ApplicationContextAware extends Aware { void setApplicationContext(ApplicationContext var1) throws BeansException;}启动类中获取

2020-11-05 17:13:37 329

原创 基于spring boot&mybatis实现controller层、dao层拦截器

一、Controller层拦截器自定义注解@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)public @interface MyAnnotation { boolean value() default true;}实现HandlerInterceptor接口创建拦截器public class MyInterceptor implements HandlerInterceptor { @Overr

2020-11-05 17:10:26 988

原创 logback:spring boot集成配置及独立配置

spring boot日志框架spring内部日志框架JCLspring-boot-starter-logging默认slf4j+logback<dependencies> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <scope>compile<

2020-10-15 15:23:14 595

原创 正则表达式:Pattern与Matcher实例应用及正则基础

一、Pattern与MatcherString regex = "\\(";Pattern pattern = Pattern.compile(regex);Matcher matcher = pattern.matcher(str);Pattern.compile(regex):返回一个正则表达式pattern.matcher(str):返回一个matcher,pattern为“regex”Pattern.matches(regex, str):字符串与正则完全匹配则返回tr

2020-10-15 15:22:27 622

空空如也

空空如也

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

TA关注的人

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