Giter Site home page Giter Site logo

同mybatis-plus共用提示:java.lang.NullPointerException at org.nebula.contrib.ngbatis.proxy.MapperProxy.invoke(MapperProxy.java:74) about ngbatis HOT 2 CLOSED

liubin192837 avatar liubin192837 commented on June 12, 2024
同mybatis-plus共用提示:java.lang.NullPointerException at org.nebula.contrib.ngbatis.proxy.MapperProxy.invoke(MapperProxy.java:74)

from ngbatis.

Comments (2)

liubin192837 avatar liubin192837 commented on June 12, 2024 1

fix

from ngbatis.

liubin192837 avatar liubin192837 commented on June 12, 2024

pom引用如下:


org.springframework.boot
spring-boot-starter-web

	<dependency>
		<groupId>com.baomidou</groupId>
		<artifactId>mybatis-plus-boot-starter</artifactId>
		<version>3.4.0</version>
	</dependency>


	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<optional>true</optional>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.nebula-contrib</groupId>
		<artifactId>ngbatis</artifactId>
		<version>1.2.0</version>
	</dependency>
</dependencies>

配置如下:
server:
port
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.137.200:3306/test?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&zeroDateTimeBehavior=round&useSSL=false&allowMultiQueries=true&useAffectedRows=true
username: root
password: 12345678
mybatis-plus:
mapper-locations: classpath:mapper/*.xml

nebula:
ngbatis:
session-life-length: 300000
check-fixed-rate: 300000
# space name needs to be informed through annotations(@space) or xml(space="test")
# default false(false: Session pool map will not be initialized)
use-session-pool: false
hosts: 192.168.137.200:9669
username: root
password: nebula
space: testperson
pool-config:
min-conns-size: 0
max-conns-size: 10
timeout: 6000
idle-time: 0
interval-idle: -1
wait-time: 6000
min-cluster-health-rate: 1.0
enable-ssl: false
cql:
parser:
mapper-locations: classpath:/nebulamapper/*.xml

from ngbatis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.