我之所以写作,不是我有才华,而是我有感情。------巴金
|------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| hljs java /** * mybatis-plus自定义配置 * * @return com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer * @author <achao1441470436@gmail.com> * @since 2021/9/8 16:09 */ @Bean public ConfigurationCustomizer configurationCustomizer() { return configuration -> { // 开启通用枚举支持,默认使用ordinalType configuration.setDefaultEnumTypeHandler(org.apache.ibatis.type.EnumOrdinalTypeHandler.class); // 开启mybatis日志 configuration.setLogImpl(org.apache.ibatis.logging.stdout.StdOutImpl.class); }; }
|
类比yml
中这部分配置