https://github.com/glibwild/hello-springboot
springboot测试项目,包含对注解的解释,持续更新
https://github.com/glibwild/hello-springboot
Last synced: 2 months ago
JSON representation
springboot测试项目,包含对注解的解释,持续更新
- Host: GitHub
- URL: https://github.com/glibwild/hello-springboot
- Owner: GlibWild
- License: mit
- Created: 2025-02-27T08:27:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-11T03:28:46.000Z (over 1 year ago)
- Last Synced: 2025-12-04T07:34:30.710Z (7 months ago)
- Language: Java
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 最基础的springboot测试项目,包含对注解的解释
```
1.运行代码
2.访问路径:
http://127.0.0.1:8911/hello/config
其余路径自行查看controller
```
#### mybatis测试内容
```
1.启动mysql服务
2.运行目录下hello.sql
3.修改application.properties下关于数据库连接配置
4.mybatis基础配置很简单。
1). resources/mapper/UserMapper.xml 用于配置sql语句实现
2). 在UserMapper.xml中指定的位置处添加UserMapper的接口
3). 依赖注入即可调用UserMapper中的接口
如需查看完整配置,请自行查看 https://mybatis.net.cn/index.html
```