Skip to content

Conversation

@kazuki43zoo
Copy link
Member

I've added configurationProperties on MybatisProperties for customizing a global property.

mybatis-config.xml:

<properties>
    <property name="key" value="value1" />
</properties>

Can override a defined property or define a new property at application.properties as follows:

mybatis.configuration-properties.key=value2

These properties can use as placeholder(${...} format) in mybatis-config.xml and SQL statement. (In this case, ${key} will replace to value2)

Please review.

@kazuki43zoo kazuki43zoo merged commit c709135 into mybatis:master Nov 19, 2016
@kazuki43zoo kazuki43zoo deleted the configuration-properties branch November 19, 2016 00:56
@kazuki43zoo kazuki43zoo added this to the 1.2.0 milestone Nov 19, 2016
@kazuki43zoo kazuki43zoo self-assigned this Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant