新增数据库建表sql,并对config.properties添加注释#14
Open
qjkobe wants to merge 3 commits intoabel533:masterfrom
qjkobe:master
Open
新增数据库建表sql,并对config.properties添加注释#14qjkobe wants to merge 3 commits intoabel533:masterfrom qjkobe:master
qjkobe wants to merge 3 commits intoabel533:masterfrom
qjkobe:master
Conversation
Owner
|
https://github.com/abel533/Mybatis-Spring/blob/master/src/main/resources/test.sql 项目中有SQL,并且还有数据。 另外config.properties中增加注释时尽可能不要修改配置信息,每个人的都不一样。 你在看看,可以增加例子或者继续完善,然后PR,谢谢~ |
Author
|
增加了动态排序功能,可以根据某字段升序或者降序。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
后期我可能还会给selectByCountry添加一个order参数,用来顺序或者逆序排序。
另外,这个项目有很多值得学习的地方,我以前只会在mapper里写动态sql,然后外面调用。这个项目里虽然也写了动态sql,不过没有用到,而是在Service的实现中使用了Example.Criteria来实现动态查询。我感觉我对MyBatis的理解还是太浅了,希望以后能跟随着你的博客一直进步!谢谢了