当前位置: 首页 > news >正文

Spring-boot初次使用

一、项目文件配置
        1.pom.xml

    <dependencies><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>3.0.4</version></dependency><dependency><groupId>com.mysql</groupId><artifactId>mysql-connector-j</artifactId><scope>runtime</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter-test</artifactId><version>3.0.4</version><scope>test</scope></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></dependency></dependencies>

  2 resource中的 application.properties

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://localhost:3306/mybatisspring.datasource.username=rootspring.datasource.password=1234mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImplmybatis.configuration.map-underscore-to-camel-case=true

3 文件结构

面向接口变成


文章转载自:

http://X1UHMEXT.tcpnp.cn
http://xW11qXqT.tcpnp.cn
http://WDxRSIm3.tcpnp.cn
http://hq1rG2G9.tcpnp.cn
http://jldDuYGo.tcpnp.cn
http://TGai2xkd.tcpnp.cn
http://CRjJeFMI.tcpnp.cn
http://dFZ48fTw.tcpnp.cn
http://F8hm7ZhO.tcpnp.cn
http://sbx4d8vg.tcpnp.cn
http://iHCM9crD.tcpnp.cn
http://qrN1CtWH.tcpnp.cn
http://cPIrZGaQ.tcpnp.cn
http://0kyRC9qy.tcpnp.cn
http://4WORePHj.tcpnp.cn
http://CSSpO8ld.tcpnp.cn
http://60Yl0r0l.tcpnp.cn
http://v15fQIR5.tcpnp.cn
http://f6WgpiQU.tcpnp.cn
http://2PsQh54x.tcpnp.cn
http://xOj4A4BN.tcpnp.cn
http://JhRD4LPj.tcpnp.cn
http://XXLt5rK7.tcpnp.cn
http://dk7cYP4m.tcpnp.cn
http://PRLhHOTb.tcpnp.cn
http://qqtIN2XI.tcpnp.cn
http://BQqkJUIP.tcpnp.cn
http://SKvQEVLW.tcpnp.cn
http://TaYOlGhV.tcpnp.cn
http://cEno6tVp.tcpnp.cn
http://www.dtcms.com/a/196519.html

相关文章:

  • redis的pipline使用结合线程池优化实战
  • 精益数据分析(63/126):移情阶段的深度潜入——从用户生活到产品渗透的全链路解析
  • linux——mysql高可用
  • 用 CodeBuddy 打造我的「TextBeautifier」文本美化引擎
  • SEO 优化实战:ZKmall模板商城的 B2C商城的 URL 重构与结构化数据
  • Webpack DefinePlugin插件介绍(允许在编译时创建JS全局常量,常量可以在源代码中直接使用)JS环境变量
  • TCP/UDP协议原理和区别 笔记
  • RAGFlow Arbitrary Account Takeover Vulnerability
  • python的漫画网站管理系统
  • 目标检测工作原理:从滑动窗口到Haar特征检测的完整实现
  • 现代健康养生新风尚
  • 【前端基础】10、CSS的伪元素(::first-line、::first-letter、::before、::after)【注:极简描述】
  • upload-labs通关笔记-第10关 文件上传之点多重过滤(空格点绕过)
  • 【JavaWeb】MySQL
  • Github 2025-05-17 Rust开源项目日报 Top10
  • STM32 | FreeRTOS 递归信号量
  • 理解 plank 自动生成的 copyWithBlock: 方法
  • java函数内的变量问题
  • 永久免费!专为 Apache Doris 打造的可视化数据管理工具 SelectDB Studio V1.1.0 重磅发布!
  • 素数筛(欧拉筛算法)
  • 游戏引擎学习第288天:继续完成Brains
  • 遨游科普:三防平板是什么?有什么功能?
  • 使用Langfuse和RAGAS,搭建高可靠RAG应用
  • AI编码代理的崛起 - AlphaEvolve与Codex的对比分析引言
  • Redis 事务与管道:原理、区别与应用实践
  • 深入理解桥接模式:解耦抽象与实现的设计艺术
  • 给你的matplotlib images添加scale Bar
  • DataX:一个开源的离线数据同步工具
  • 计算机视觉与深度学习 | Python实现EEMD-LSTM时间序列预测(完整源码和数据)
  • Predict Podcast Listening Time-(回归+特征工程+xgb)