登录
首页 >  数据库 >  MySQL

spring boot 2.0.x -> 2.1.x 如何设置mysql5.6引擎为innodb

来源:SegmentFault

时间:2023-02-25 08:28:35 325浏览 收藏

本篇文章主要是结合我之前面试的各种经历和实战开发中遇到的问题解决经验整理的,希望这篇《spring boot 2.0.x -> 2.1.x 如何设置mysql5.6引擎为innodb》对你有很大帮助!欢迎收藏,分享给更多的需要的朋友学习~

最近更新为

    @Override
    public Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException {
        final Object dialectReference = configValues.get( AvailableSettings.DIALECT );
        if ( !isEmpty( dialectReference ) ) {
            return constructDialect( dialectReference );
        }
        else {
            return determineDialect( resolutionInfoSource );
        }
    }    

该方法中,由configValues这个配置文件中,获取

package org.springframework.boot.autoconfigure.orm.jpa;

@ConfigurationProperties(
    prefix = "spring.jpa"
)
public class JpaProperties {
    private Map properties = new HashMap();
    public void setProperties(Map properties) {
        this.properties = properties;
    }

理论要掌握,实操不能落!以上关于《spring boot 2.0.x -> 2.1.x 如何设置mysql5.6引擎为innodb》的详细介绍,大家都掌握了吧!如果想要继续提升自己的能力,那么就来关注golang学习网公众号吧!

声明:本文转载于:SegmentFault 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>
评论列表