实例介绍
Spring Boot 集成mybatis,Spring Boot和mybatis整合的开发
【实例截图】
【核心代码】
SpringBoot集成mybatis
└── 龙果学院--Spring Boot基础教程28-Spring Boot集成mybatis
├── roncoo-mybatis-generator
│ ├── README.md
│ ├── pom.xml
│ └── src
│ ├── main
│ │ ├── java
│ │ │ └── org
│ │ │ └── mybatis
│ │ │ └── generator
│ │ │ ├── api
│ │ │ │ ├── CommentGenerator.java
│ │ │ │ ├── DAOMethodNameCalculator.java
│ │ │ │ ├── FullyQualifiedTable.java
│ │ │ │ ├── GeneratedFile.java
│ │ │ │ ├── GeneratedJavaFile.java
│ │ │ │ ├── GeneratedXmlFile.java
│ │ │ │ ├── IntrospectedColumn.java
│ │ │ │ ├── IntrospectedTable.java
│ │ │ │ ├── JavaFormatter.java
│ │ │ │ ├── JavaTypeResolver.java
│ │ │ │ ├── MyBatisGenerator.java
│ │ │ │ ├── Plugin.java
│ │ │ │ ├── PluginAdapter.java
│ │ │ │ ├── ProgressCallback.java
│ │ │ │ ├── ShellCallback.java
│ │ │ │ ├── ShellRunner.java
│ │ │ │ ├── VerboseProgressCallback.java
│ │ │ │ ├── XmlFormatter.java
│ │ │ │ ├── dom
│ │ │ │ │ ├── DefaultJavaFormatter.java
│ │ │ │ │ ├── DefaultXmlFormatter.java
│ │ │ │ │ ├── OutputUtilities.java
│ │ │ │ │ ├── java
│ │ │ │ │ │ ├── CompilationUnit.java
│ │ │ │ │ │ ├── Field.java
│ │ │ │ │ │ ├── FullyQualifiedJavaType.java
│ │ │ │ │ │ ├── InitializationBlock.java
│ │ │ │ │ │ ├── InnerClass.java
│ │ │ │ │ │ ├── InnerEnum.java
│ │ │ │ │ │ ├── Interface.java
│ │ │ │ │ │ ├── JavaElement.java
│ │ │ │ │ │ ├── JavaVisibility.java
│ │ │ │ │ │ ├── Method.java
│ │ │ │ │ │ ├── Parameter.java
│ │ │ │ │ │ ├── PrimitiveTypeWrapper.java
│ │ │ │ │ │ ├── TopLevelClass.java
│ │ │ │ │ │ └── TopLevelEnumeration.java
│ │ │ │ │ └── xml
│ │ │ │ │ ├── Attribute.java
│ │ │ │ │ ├── Document.java
│ │ │ │ │ ├── Element.java
│ │ │ │ │ ├── TextElement.java
│ │ │ │ │ └── XmlElement.java
│ │ │ │ └── package.html
│ │ │ ├── codegen
│ │ │ │ ├── AbstractGenerator.java
│ │ │ │ ├── AbstractJavaClientGenerator.java
│ │ │ │ ├── AbstractJavaGenerator.java
│ │ │ │ ├── AbstractXmlGenerator.java
│ │ │ │ ├── RootClassInfo.java
│ │ │ │ ├── XmlConstants.java
│ │ │ │ ├── ibatis2
│ │ │ │ │ ├── Ibatis2FormattingUtilities.java
│ │ │ │ │ ├── IntrospectedTableIbatis2Java2Impl.java
│ │ │ │ │ ├── IntrospectedTableIbatis2Java5Impl.java
│ │ │ │ │ ├── dao
│ │ │ │ │ │ ├── DAOGenerator.java
│ │ │ │ │ │ ├── elements
│ │ │ │ │ │ │ ├── AbstractDAOElementGenerator.java
│ │ │ │ │ │ │ ├── CountByExampleMethodGenerator.java
│ │ │ │ │ │ │ ├── DeleteByExampleMethodGenerator.java
│ │ │ │ │ │ │ ├── DeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ │ ├── InsertMethodGenerator.java
│ │ │ │ │ │ │ ├── InsertSelectiveMethodGenerator.java
│ │ │ │ │ │ │ ├── SelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ │ ├── SelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ │ ├── SelectByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ │ ├── UpdateByExampleParmsInnerclassGenerator.java
│ │ │ │ │ │ │ ├── UpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ │ │ ├── UpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ │ ├── UpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ │ ├── UpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ │ │ │ └── UpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ ├── AbstractDAOTemplate.java
│ │ │ │ │ │ ├── GenericCIDAOTemplate.java
│ │ │ │ │ │ ├── GenericSIDAOTemplate.java
│ │ │ │ │ │ ├── IbatisDAOTemplate.java
│ │ │ │ │ │ └── SpringDAOTemplate.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── BaseRecordGenerator.java
│ │ │ │ │ │ ├── ExampleGenerator.java
│ │ │ │ │ │ ├── PrimaryKeyGenerator.java
│ │ │ │ │ │ └── RecordWithBLOBsGenerator.java
│ │ │ │ │ └── sqlmap
│ │ │ │ │ ├── SqlMapGenerator.java
│ │ │ │ │ └── elements
│ │ │ │ │ ├── AbstractXmlElementGenerator.java
│ │ │ │ │ ├── BaseColumnListElementGenerator.java
│ │ │ │ │ ├── BlobColumnListElementGenerator.java
│ │ │ │ │ ├── CountByExampleElementGenerator.java
│ │ │ │ │ ├── DeleteByExampleElementGenerator.java
│ │ │ │ │ ├── DeleteByPrimaryKeyElementGenerator.java
│ │ │ │ │ ├── ExampleWhereClauseElementGenerator.java
│ │ │ │ │ ├── InsertElementGenerator.java
│ │ │ │ │ ├── InsertSelectiveElementGenerator.java
│ │ │ │ │ ├── ResultMapWithBLOBsElementGenerator.java
│ │ │ │ │ ├── ResultMapWithoutBLOBsElementGenerator.java
│ │ │ │ │ ├── SelectByExampleWithBLOBsElementGenerator.java
│ │ │ │ │ ├── SelectByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ │ ├── SelectByPrimaryKeyElementGenerator.java
│ │ │ │ │ ├── UpdateByExampleSelectiveElementGenerator.java
│ │ │ │ │ ├── UpdateByExampleWithBLOBsElementGenerator.java
│ │ │ │ │ ├── UpdateByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ │ ├── UpdateByPrimaryKeySelectiveElementGenerator.java
│ │ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsElementGenerator.java
│ │ │ │ │ └── UpdateByPrimaryKeyWithoutBLOBsElementGenerator.java
│ │ │ │ └── mybatis3
│ │ │ │ ├── IntrospectedTableMyBatis3Impl.java
│ │ │ │ ├── IntrospectedTableMyBatis3SimpleImpl.java
│ │ │ │ ├── MyBatis3FormattingUtilities.java
│ │ │ │ ├── javamapper
│ │ │ │ │ ├── AnnotatedClientGenerator.java
│ │ │ │ │ ├── JavaMapperGenerator.java
│ │ │ │ │ ├── MixedClientGenerator.java
│ │ │ │ │ ├── SimpleAnnotatedClientGenerator.java
│ │ │ │ │ ├── SimpleJavaClientGenerator.java
│ │ │ │ │ ├── SqlProviderGenerator.java
│ │ │ │ │ └── elements
│ │ │ │ │ ├── AbstractJavaMapperMethodGenerator.java
│ │ │ │ │ ├── CountByExampleMethodGenerator.java
│ │ │ │ │ ├── DeleteByExampleMethodGenerator.java
│ │ │ │ │ ├── DeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ │ ├── InsertMethodGenerator.java
│ │ │ │ │ ├── InsertSelectiveMethodGenerator.java
│ │ │ │ │ ├── SelectAllMethodGenerator.java
│ │ │ │ │ ├── SelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── SelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── SelectByPrimaryKeyMethodGenerator.java
│ │ │ │ │ ├── UpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ ├── UpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── UpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── UpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── UpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── annotated
│ │ │ │ │ │ ├── AnnotatedCountByExampleMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedDeleteByExampleMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedDeleteByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedInsertMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedInsertSelectiveMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedSelectAllMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedSelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedSelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedSelectByPrimaryKeyMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedUpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedUpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedUpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedUpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ │ │ ├── AnnotatedUpdateByPrimaryKeyWithBLOBsMethodGenerator.java
│ │ │ │ │ │ └── AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator.java
│ │ │ │ │ └── sqlprovider
│ │ │ │ │ ├── AbstractJavaProviderMethodGenerator.java
│ │ │ │ │ ├── ProviderApplyWhereMethodGenerator.java
│ │ │ │ │ ├── ProviderCountByExampleMethodGenerator.java
│ │ │ │ │ ├── ProviderDeleteByExampleMethodGenerator.java
│ │ │ │ │ ├── ProviderInsertSelectiveMethodGenerator.java
│ │ │ │ │ ├── ProviderSelectByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── ProviderSelectByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ ├── ProviderUpdateByExampleSelectiveMethodGenerator.java
│ │ │ │ │ ├── ProviderUpdateByExampleWithBLOBsMethodGenerator.java
│ │ │ │ │ ├── ProviderUpdateByExampleWithoutBLOBsMethodGenerator.java
│ │ │ │ │ └── ProviderUpdateByPrimaryKeySelectiveMethodGenerator.java
│ │ │ │ ├── model
│ │ │ │ │ ├── BaseRecordGenerator.java
│ │ │ │ │ ├── ExampleGenerator.java
│ │ │ │ │ ├── PrimaryKeyGenerator.java
│ │ │ │ │ ├── RecordWithBLOBsGenerator.java
│ │ │ │ │ └── SimpleModelGenerator.java
│ │ │ │ └── xmlmapper
│ │ │ │ ├── MixedMapperGenerator.java
│ │ │ │ ├── SimpleXMLMapperGenerator.java
│ │ │ │ ├── XMLMapperGenerator.java
│ │ │ │ └── elements
│ │ │ │ ├── AbstractXmlElementGenerator.java
│ │ │ │ ├── BaseColumnListElementGenerator.java
│ │ │ │ ├── BlobColumnListElementGenerator.java
│ │ │ │ ├── CountByExampleElementGenerator.java
│ │ │ │ ├── DeleteByExampleElementGenerator.java
│ │ │ │ ├── DeleteByPrimaryKeyElementGenerator.java
│ │ │ │ ├── ExampleWhereClauseElementGenerator.java
│ │ │ │ ├── InsertElementGenerator.java
│ │ │ │ ├── InsertSelectiveElementGenerator.java
│ │ │ │ ├── ResultMapWithBLOBsElementGenerator.java
│ │ │ │ ├── ResultMapWithoutBLOBsElementGenerator.java
│ │ │ │ ├── SelectByExampleWithBLOBsElementGenerator.java
│ │ │ │ ├── SelectByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ ├── SelectByPrimaryKeyElementGenerator.java
│ │ │ │ ├── SimpleSelectAllElementGenerator.java
│ │ │ │ ├── SimpleSelectByPrimaryKeyElementGenerator.java
│ │ │ │ ├── UpdateByExampleSelectiveElementGenerator.java
│ │ │ │ ├── UpdateByExampleWithBLOBsElementGenerator.java
│ │ │ │ ├── UpdateByExampleWithoutBLOBsElementGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeySelectiveElementGenerator.java
│ │ │ │ ├── UpdateByPrimaryKeyWithBLOBsElementGenerator.java
│ │ │ │ └── UpdateByPrimaryKeyWithoutBLOBsElementGenerator.java
│ │ │ ├── config
│ │ │ │ ├── ColumnOverride.java
│ │ │ │ ├── ColumnRenamingRule.java
│ │ │ │ ├── CommentGeneratorConfiguration.java
│ │ │ │ ├── Configuration.java
│ │ │ │ ├── Context.java
│ │ │ │ ├── GeneratedKey.java
│ │ │ │ ├── IgnoredColumn.java
│ │ │ │ ├── JDBCConnectionConfiguration.java
│ │ │ │ ├── JavaClientGeneratorConfiguration.java
│ │ │ │ ├── JavaModelGeneratorConfiguration.java
│ │ │ │ ├── JavaTypeResolverConfiguration.java
│ │ │ │ ├── MergeConstants.java
│ │ │ │ ├── ModelType.java
│ │ │ │ ├── PluginConfiguration.java
│ │ │ │ ├── PropertyHolder.java
│ │ │ │ ├── PropertyRegistry.java
│ │ │ │ ├── SqlMapGeneratorConfiguration.java
│ │ │ │ ├── TableConfiguration.java
│ │ │ │ ├── TypedPropertyHolder.java
│ │ │ │ └── xml
│ │ │ │ ├── ConfigurationParser.java
│ │ │ │ ├── IbatorConfigurationParser.java
│ │ │ │ ├── MyBatisGeneratorConfigurationParser.java
│ │ │ │ ├── ParserEntityResolver.java
│ │ │ │ ├── ParserErrorHandler.java
│ │ │ │ ├── ibator-config_1_0.dtd
│ │ │ │ └── mybatis-generator-config_1_0.dtd
│ │ │ ├── exception
│ │ │ │ ├── InvalidConfigurationException.java
│ │ │ │ ├── ShellException.java
│ │ │ │ └── XMLParserException.java
│ │ │ ├── internal
│ │ │ │ ├── DefaultCommentGenerator.java
│ │ │ │ ├── DefaultDAOMethodNameCalculator.java
│ │ │ │ ├── DefaultShellCallback.java
│ │ │ │ ├── DomWriter.java
│ │ │ │ ├── ExtendedDAOMethodNameCalculator.java
│ │ │ │ ├── NullProgressCallback.java
│ │ │ │ ├── ObjectFactory.java
│ │ │ │ ├── PluginAggregator.java
│ │ │ │ ├── XmlFileMergerJaxp.java
│ │ │ │ ├── db
│ │ │ │ │ ├── ActualTableName.java
│ │ │ │ │ ├── ConnectionFactory.java
│ │ │ │ │ ├── DatabaseDialects.java
│ │ │ │ │ ├── DatabaseIntrospector.java
│ │ │ │ │ └── SqlReservedWords.java
│ │ │ │ ├── rules
│ │ │ │ │ ├── BaseRules.java
│ │ │ │ │ ├── ConditionalModelRules.java
│ │ │ │ │ ├── FlatModelRules.java
│ │ │ │ │ ├── HierarchicalModelRules.java
│ │ │ │ │ ├── Rules.java
│ │ │ │ │ └── RulesDelegate.java
│ │ │ │ ├── types
│ │ │ │ │ ├── JavaTypeResolverDefaultImpl.java
│ │ │ │ │ ├── Jdbc4Types.java
│ │ │ │ │ └── JdbcTypeNameTranslator.java
│ │ │ │ └── util
│ │ │ │ ├── ClassloaderUtility.java
│ │ │ │ ├── EqualsUtil.java
│ │ │ │ ├── HashCodeUtil.java
│ │ │ │ ├── JavaBeansUtil.java
│ │ │ │ ├── StringUtility.java
│ │ │ │ └── messages
│ │ │ │ ├── Messages.java
│ │ │ │ └── messages.properties
│ │ │ ├── logging
│ │ │ │ ├── AbstractLogFactory.java
│ │ │ │ ├── JdkLoggingImpl.java
│ │ │ │ ├── Log.java
│ │ │ │ ├── Log4jImpl.java
│ │ │ │ └── LogFactory.java
│ │ │ └── plugins
│ │ │ ├── AnnotationPlugin.java
│ │ │ ├── CachePlugin.java
│ │ │ ├── CaseInsensitiveLikePlugin.java
│ │ │ ├── EqualsHashCodePlugin.java
│ │ │ ├── MapperConfigPlugin.java
│ │ │ ├── MapperPlugin.java
│ │ │ ├── PaginationPlugin.java
│ │ │ ├── RenameExampleClassPlugin.java
│ │ │ ├── RowBoundsPlugin.java
│ │ │ ├── SerializablePlugin.java
│ │ │ ├── SqlMapConfigPlugin.java
│ │ │ ├── ToStringPlugin.java
│ │ │ └── VirtualPrimaryKeyPlugin.java
│ │ └── resources
│ │ └── log4j.properties
│ └── test
│ ├── java
│ │ └── com
│ │ └── roncoo
│ │ └── test
│ │ └── RoncooSpringBoot.java
│ └── resources
│ ├── roncoo-spring-boot.properties
│ └── roncoo-spring-boot.xml
├── spring-boot-demo-28-1
│ ├── pom.xml
│ └── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ └── roncoo
│ │ │ └── education
│ │ │ ├── SpringBootDemo281Application.java
│ │ │ ├── bean
│ │ │ │ └── RoncooUser.java
│ │ │ └── mapper
│ │ │ └── RoncooUserMapper.java
│ │ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── roncoo
│ └── education
│ └── SpringBootDemo281ApplicationTests.java
├── spring-boot-demo-28-2
│ ├── pom.xml
│ └── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ └── roncoo
│ │ │ └── education
│ │ │ ├── SpringBootDemo282Application.java
│ │ │ ├── bean
│ │ │ │ ├── RoncooUser.java
│ │ │ │ ├── RoncooUserExample.java
│ │ │ │ ├── RoncooUserLog.java
│ │ │ │ └── RoncooUserLogExample.java
│ │ │ └── mapper
│ │ │ ├── RoncooUserLogMapper.java
│ │ │ └── RoncooUserMapper.java
│ │ └── resources
│ │ ├── application.properties
│ │ └── mybatis
│ │ ├── RoncooUserLogMapper.xml
│ │ └── RoncooUserMapper.xml
│ └── test
│ └── java
│ └── com
│ └── roncoo
│ └── education
│ └── SpringBootDemo282ApplicationTests.java
└── 龙果学院--Spring Boot基础教程28-Spring Boot集成mybatis.pdf
77 directories, 280 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论