3.2 Plain Java Projects
Hint
This article is generated by AI translation.
“Plain Java project” means a project without any framework or container—just a simple Java app.
Tip
dbVisitor integrates well with any Java project, including Spring Boot and Quarkus, so you can treat those as plain projects too.
Dependencies
the dependency, current version: 6.4.0
Maven dependencies
<dependency>
<groupId>net.hasor</groupId>
<artifactId>dbvisitor</artifactId>
<version>latest version</version>
</dependency>
How to use
To use dbVisitor in a plain project, just provide a DataSource or Connection.
dbVisitor APIs you can choose from:
- Use raw SQL via the Programmatic API.
- Use annotations on interfaces via the Declarative API.
- Use the unified Fluent API across supported databases.
- Use predefined methods in BaseMapper for common operations.
- Use Mapper XML files to centrally manage SQL.