typeHandler设置和mybatis版本问题

使用hashicorp遇到几个问题

1  用了生产模式,然后丢了token和解封密钥,不能重新解封,删除vault和配置路径后,重新安装也没有解决问题,只能先用dev模式继续研究了,后续看能不能找到其他办法

2 springboot  mybatis集成时,遇到问题,generatorConfig.xml文件中设置了typeHandler,但是加密时把所有数据都加密了,主要是版本问题,将2.1.0版本改为2.0.1版本可以对指定数据列加密。

<table tableName="user" domainObjectName="User">
<columnOverride column="passWord" jdbcType="VARCHAR" typeHandler="com.example.logindemo.handler.EncryptHandler"/>
</table>

全部列加密版本是2.1.0

        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.1.0</version>
        </dependency>

posted @ 2019-10-14 19:40  meadowhuhu  阅读(324)  评论(0编辑  收藏  举报