T4puSD / spring-mybatis-demo

A demo project to demonstrate CRUD operation with Spring Boot and Mybatis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo project to demonstrate Spring Boot + Mybatis

Dependencies

  • PostgresSQL database
  • mybatis-spring-boot-starter maven dependency (see pom file)
  • JDK 17

Key Takeaways

  1. Configuring mybatis mapper with spring boot to expose via @MapperScan annotation as Beans
@Configuration
@MapperScan("com.tapusd.springmybaties")
public class AppConfig {
}
  1. Using Mybatis apis in ArticleMapper.java file to do CRUD operation

About

A demo project to demonstrate CRUD operation with Spring Boot and Mybatis.


Languages

Language:Java 100.0%