码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 创建SpringBoot项目的几种方式


    使用 spring boot 提供的初始化器。 向导的方式,完成 spring boot 项目的创建: 使用
    方便.(需要联网)

     

     

    就是下图这个,在pom.xml里

     

    选择依赖,选择些单体SpringBoot需要用到的一些

    Spring Web包含SpringMVC  Tomcat

     

    SQL 基本的JDBC  MysqlDriver Mybatis

     

     

     

     

    第二种通过国内镜像网站  http://start.spring.io是国外的容易超时,

    http://start.springboot.io是国内镜像  快一点

     

     

     接着就一摸一样了

     

    第三种,通过网页下载压缩包的形式

    直接访问http://start.springboot.io

     

    第四种  通过Maven

     

     找个springBoot项目的pom.xml拷贝到自己的pom.xml

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <project xmlns="http://maven.apache.org/POM/4.0.0"
    3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    5. <modelVersion>4.0.0</modelVersion>
    6. <parent>
    7. <groupId>org.springframework.boot</groupId>
    8. <artifactId>spring-boot-starter-parent</artifactId>
    9. <version>2.7.5</version>
    10. <relativePath/> <!-- lookup parent from repository -->
    11. </parent>
    12. <groupId>org.example</groupId>
    13. <artifactId>004-springboot-three</artifactId>
    14. <version>1.0-SNAPSHOT</version>
    15. <dependencies>
    16. <dependency>
    17. <groupId>org.springframework.boot</groupId>
    18. <artifactId>spring-boot-starter-data-redis</artifactId>
    19. </dependency>
    20. <dependency>
    21. <groupId>org.springframework.boot</groupId>
    22. <artifactId>spring-boot-starter-jdbc</artifactId>
    23. </dependency>
    24. <dependency>
    25. <groupId>org.springframework.boot</groupId>
    26. <artifactId>spring-boot-starter-web</artifactId>
    27. </dependency>
    28. <dependency>
    29. <groupId>org.mybatis.spring.boot</groupId>
    30. <artifactId>mybatis-spring-boot-starter</artifactId>
    31. <version>2.2.2</version>
    32. </dependency>
    33. <dependency>
    34. <groupId>org.springframework.boot</groupId>
    35. <artifactId>spring-boot-devtools</artifactId>
    36. <scope>runtime</scope>
    37. <optional>true</optional>
    38. </dependency>
    39. <dependency>
    40. <groupId>com.mysql</groupId>
    41. <artifactId>mysql-connector-j</artifactId>
    42. <scope>runtime</scope>
    43. </dependency>
    44. <dependency>
    45. <groupId>org.projectlombok</groupId>
    46. <artifactId>lombok</artifactId>
    47. <optional>true</optional>
    48. </dependency>
    49. <dependency>
    50. <groupId>org.springframework.boot</groupId>
    51. <artifactId>spring-boot-starter-test</artifactId>
    52. <scope>test</scope>
    53. </dependency>
    54. </dependencies>
    55. <build>
    56. <plugins>
    57. <plugin>
    58. <groupId>org.springframework.boot</groupId>
    59. <artifactId>spring-boot-maven-plugin</artifactId>
    60. <configuration>
    61. <excludes>
    62. <exclude>
    63. <groupId>org.projectlombok</groupId>
    64. <artifactId>lombok</artifactId>
    65. </exclude>
    66. </excludes>
    67. </configuration>
    68. </plugin>
    69. </plugins>
    70. </build>
    71. </project>

  • 相关阅读:
    “华为杯”研究生数学建模竞赛2015年-【华为杯】E题:数控加工刀具运动的优化控制模型研究(续)(附MATLAB代码实现)
    alexnet pytorch模型和onnx模型速度对比
    初步了解 RabbitMQ
    确认无疑,.NET 6是迄今为止最快的.NET
    Python语言学习:Python语言学习之逻辑控制语句(if语句&for语句&while语句&range语句&with语句)的简介、案例应用之详细攻略
    逐字稿 | 8 视频理解论文串讲(上)【论文精读】
    基于瞬时频率的语言信号清/浊音判决和高音检测(MATLAB R2021)
    计算机毕业设计(附源码)python忆居民宿管理
    HTML如何制作音乐网站(如何搭建个人音乐网页)
    寻找特殊年号
  • 原文地址:https://blog.csdn.net/tiantiantbtb/article/details/127911903
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号