kandi background
Explore Kits

mybatis-plus | powerful enhanced toolkit of MyBatis for simplify development | Object-Relational Mapping library

 by   baomidou Java Version: v3.5.1 License: Non-SPDX

 by   baomidou Java Version: v3.5.1 License: Non-SPDX

Download this library from

kandi X-RAY | mybatis-plus Summary

mybatis-plus is a Java library typically used in Utilities, Object-Relational Mapping applications. mybatis-plus has no vulnerabilities, it has build file available and it has medium support. However mybatis-plus has 9 bugs and it has a Non-SPDX License. You can download it from GitHub, Maven.
MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development. This toolkit provides some efficient, useful, out-of-the-box features for MyBatis, use it can effectively save your development time.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • mybatis-plus has a medium active ecosystem.
  • It has 12765 star(s) with 3505 fork(s). There are 48 watchers for this library.
  • There were 1 major release(s) in the last 12 months.
  • There are 87 open issues and 3708 have been closed. On average issues are closed in 10 days. There are 11 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of mybatis-plus is v3.5.1
mybatis-plus Support
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
mybatis-plus Support
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping

quality kandi Quality

  • mybatis-plus has 9 bugs (0 blocker, 0 critical, 4 major, 5 minor) and 967 code smells.
mybatis-plus Quality
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
mybatis-plus Quality
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping

securitySecurity

  • mybatis-plus has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • mybatis-plus code analysis shows 0 unresolved vulnerabilities.
  • There are 11 security hotspots that need review.
mybatis-plus Security
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
mybatis-plus Security
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping

license License

  • mybatis-plus has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
mybatis-plus License
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
mybatis-plus License
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping

buildReuse

  • mybatis-plus releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • mybatis-plus saves you 14776 person hours of effort in developing the same functionality from scratch.
  • It has 29534 lines of code, 2564 functions and 643 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
mybatis-plus Reuse
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
mybatis-plus Reuse
Best in #Object-Relational Mapping
Average in #Object-Relational Mapping
Top functions reviewed by kandi - BETA

kandi has reviewed mybatis-plus and discovered the below as its top functions. This is intended to give you an instant insight into mybatis-plus implemented functionality, and help decide if they suit your requirements.

  • Build SQL session factory .
  • Auto count query string .
  • process joins
  • Parse prepared statement .
  • Returns dialect for given database type .
  • Init table fields .
  • parse sql info
  • Escape a raw escaped string .
  • Intercept the injection .
  • Doistic locking .

mybatis-plus Key Features

Fully compatible with MyBatis

Auto configuration on startup

Out-of-the-box interfaces for operate database

Powerful and flexible where condition wrapper

Multiple strategy to generate primary key

Lambda-style API

Almighty and highly customizable code generator

Automatic paging operation

SQL Inject defense

Support active record

Support pluggable custom interface

Build-in many useful extensions

Community Discussions

Trending Discussions on mybatis-plus
  • error when launch the chaosblade-box in local
  • java.lang.StackOverflowError happens when connect to Neo4j, in Springboot Mybatis
Trending Discussions on mybatis-plus

QUESTION

error when launch the chaosblade-box in local

Asked 2021-Apr-22 at 14:18

something wrong when run the chaosblade-box web project with the command:

nohup java -Duser.timezone=Asia/Shanghai -jar chaosblade-box-web-0.3.2.jar --spring.datasource.url=jdbc:mysql://localhost:3306/chaosblade --spring.datasource.username=chaosblade--spring.datasource.password=xxxx> chaosblade-box.log 2>&1 &

note: mysql and the schema 'chaosblade' installed.

errormsg:

2021-04-15 20:59:29.358, [32mINFO [0;39m, [31m[main][0;39m [1;35mcom.alibaba.chaosblade.box.web.ChaosbladeBoxApplication[0;39m - Starting ChaosbladeBoxApplication v0.3.2 on CharliedeMacBook-Pro.local with PID 39353 (/Users/charlie/IdeaProjects/chaosblade-box/chaosblade-box-web/target/chaosblade-box-web-0.3.2.jar started by charlie in /Users/charlie/IdeaProjects/chaosblade-box/chaosblade-box-web/target)
2021-04-15 20:59:29.365, [32mINFO [0;39m, [31m[main][0;39m [1;35mcom.alibaba.chaosblade.box.web.ChaosbladeBoxApplication[0;39m - No active profile set, falling back to default profiles: default
2021-04-15 20:59:33.813, [32mWARN [0;39m, [31m[main][0;39m [1;35morg.mybatis.spring.mapper.ClassPathMapperScanner[0;39m - No MyBatis mapper was found in '[com.alibaba.chaosblade.box.web]' package. Please check your configuration.
2021-04-15 20:59:35.141, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c3ac505f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:35.739, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'mybatis-plus-com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:35.768, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'mybatisPlusConfig' of type [com.alibaba.chaosblade.box.web.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$2d26293b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
...

                       3.3.2 
2021-04-15 20:59:42.689, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:42.736, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.214, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.227, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceMapper' of type [jdk.proxy2.$Proxy67] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.261, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceRepository' of type [com.alibaba.chaosblade.box.dao.repository.DeviceRepository] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.487, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceNodeMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.492, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceNodeMapper' of type [jdk.proxy2.$Proxy70] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.495, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'deviceNodeRepository' of type [com.alibaba.chaosblade.box.dao.repository.DeviceNodeRepository] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.663, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'devicePodMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.667, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'devicePodMapper' of type [jdk.proxy2.$Proxy72] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:43.672, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.c.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[0;39m - Bean 'devicePodRepository' of type [com.alibaba.chaosblade.box.dao.repository.DevicePodRepository] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-15 20:59:44.665, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.springframework.boot.web.embedded.tomcat.TomcatWebServer[0;39m - Tomcat initialized with port(s): 8080 (http)
2021-04-15 20:59:44.720, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.apache.coyote.http11.Http11NioProtocol[0;39m - Initializing ProtocolHandler ["http-nio-8080"]
2021-04-15 20:59:44.750, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.apache.catalina.core.StandardService[0;39m - Starting service [Tomcat]
2021-04-15 20:59:44.751, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.apache.catalina.core.StandardEngine[0;39m - Starting Servlet engine: [Apache Tomcat/9.0.21]
2021-04-15 20:59:45.033, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/][0;39m - Initializing Spring embedded WebApplicationContext
2021-04-15 20:59:45.033, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.springframework.web.context.ContextLoader[0;39m - Root WebApplicationContext: initialization completed in 15465 ms
2021-04-15 20:59:48.592, [32mWARN [0;39m, [31m[main][0;39m [1;35mo.s.b.w.s.context.AnnotationConfigServletWebServerApplicationContext[0;39m - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'experimentController': Unsatisfied dependency expressed through field 'experimentService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'experimentServiceImpl': Unsatisfied dependency expressed through field 'sceneService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sceneCategoryLoader' defined in URL [jar:file:/Users/charlie/IdeaProjects/chaosblade-box/chaosblade-box-web/target/chaosblade-box-web-0.3.2.jar!/BOOT-INF/lib/chaosblade-box-scenario-api-0.3.2.jar!/com/alibaba/chaosblade/box/scenario/api/init/SceneCategoryLoader.class]: Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfWhere'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null]
2021-04-15 20:59:48.600, [32mINFO [0;39m, [31m[main][0;39m [1;35mcom.zaxxer.hikari.HikariDataSource[0;39m - DatebookHikariCP - Shutdown initiated...
2021-04-15 20:59:48.624, [32mINFO [0;39m, [31m[main][0;39m [1;35mcom.zaxxer.hikari.HikariDataSource[0;39m - DatebookHikariCP - Shutdown completed.
2021-04-15 20:59:48.642, [32mINFO [0;39m, [31m[main][0;39m [1;35morg.apache.catalina.core.StandardService[0;39m - Stopping service [Tomcat]
2021-04-15 20:59:48.682, [32mINFO [0;39m, [31m[main][0;39m [1;35mo.s.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener[0;39m - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-04-15 20:59:48.694, [32mERROR[0;39m, [31m[main][0;39m [1;35morg.springframework.boot.SpringApplication[0;39m - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'experimentController': Unsatisfied dependency expressed through field 'experimentService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'experimentServiceImpl': Unsatisfied dependency expressed through field 'sceneService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sceneCategoryLoader' defined in URL [jar:file:/Users/charlie/IdeaProjects/chaosblade-box/chaosblade-box-web/target/chaosblade-box-web-0.3.2.jar!/BOOT-INF/lib/chaosblade-box-scenario-api-0.3.2.jar!/com/alibaba/chaosblade/box/scenario/api/init/SceneCategoryLoader.class]: Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfWhere'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742)

ANSWER

Answered 2021-Apr-19 at 03:18

It may be caused by mybatis-plus, refer to this: https://github.com/zhangdaiscott/jeecg-boot/issues/1886

Source https://stackoverflow.com/questions/67155367

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install mybatis-plus

Modify mapper file extends BaseMapper interface. MyBatis-Plus will execute the following SQL. This showcase is just a small part of MyBatis-Plus features. If you want to learn more, please refer to the documentation.
Add MyBatis-Plus dependency Latest Version: Maven: <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>Latest Version</version> </dependency> Gradle compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: 'Latest Version'
Modify mapper file extends BaseMapper interface public interface UserMapper extends BaseMapper<User> { }
Use it List<User> userList = userMapper.selectList( new QueryWrapper<User>() .lambda() .ge(User::getAge, 18) ); MyBatis-Plus will execute the following SQL SELECT * FROM user WHERE age >= 18

Support

DocumentationCode GeneratorSamplesShowcase企业版 Mybatis-Mate 高级特性

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Consider Popular Object-Relational Mapping Libraries
Compare Object-Relational Mapping Libraries with Highest Support
Compare Object-Relational Mapping Libraries with Highest Quality
Compare Object-Relational Mapping Libraries with Highest Security
Compare Object-Relational Mapping Libraries with Permissive License
Compare Object-Relational Mapping Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.