1、各种依赖中央仓库地址:https://mvnrepository.com/

    加入Spring webmvc依赖
    image.png

    image.png

    image.png

    1. <dependencies>
    2. <dependency>
    3. <groupId>junit</groupId>
    4. <artifactId>junit</artifactId>
    5. <version>4.11</version>
    6. <scope>test</scope>
    7. </dependency>
    8. <!--Spring MVC、Spring-->
    9. <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
    10. <dependency>
    11. <groupId>org.springframework</groupId>
    12. <artifactId>spring-webmvc</artifactId>
    13. <version>5.3.9</version>
    14. </dependency>
    15. <!--Spring JDBC-->
    16. <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
    17. <dependency>
    18. <groupId>org.springframework</groupId>
    19. <artifactId>spring-jdbc</artifactId>
    20. <version>5.3.9</version>
    21. </dependency>
    22. <!--Spring aspects-->
    23. <!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects -->
    24. <dependency>
    25. <groupId>org.springframework</groupId>
    26. <artifactId>spring-aspects</artifactId>
    27. <version>5.3.9</version>
    28. </dependency>
    29. <!--MyBatis-->
    30. <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
    31. <dependency>
    32. <groupId>org.mybatis</groupId>
    33. <artifactId>mybatis</artifactId>
    34. <version>3.5.6</version>
    35. </dependency>
    36. <!--MyBatis、Spring适配包-->
    37. <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
    38. <dependency>
    39. <groupId>org.mybatis</groupId>
    40. <artifactId>mybatis-spring</artifactId>
    41. <version>2.0.6</version>
    42. </dependency>
    43. <!--c3p0数据库连接池-->
    44. <dependency>
    45. <groupId>com.mchange</groupId>
    46. <artifactId>c3p0</artifactId>
    47. <version>0.9.5.4</version>
    48. </dependency>
    49. <!--Msyql-->
    50. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
    51. <dependency>
    52. <groupId>mysql</groupId>
    53. <artifactId>mysql-connector-java</artifactId>
    54. <version>8.0.21</version>
    55. </dependency>
    56. <!--JSTL-->
    57. <dependency>
    58. <groupId>javax.servlet</groupId>
    59. <artifactId>jstl</artifactId>
    60. <version>1.2</version>
    61. </dependency>
    62. <!--Servlet API-->
    63. <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
    64. <dependency>
    65. <groupId>javax.servlet</groupId>
    66. <artifactId>javax.servlet-api</artifactId>
    67. <version>4.0.1</version>
    68. <scope>provided</scope>
    69. </dependency>
    70. <!--jsp-api 依赖-->
    71. <!-- https://mvnrepository.com/artifact/javax.servlet.jsp/jsp-api -->
    72. <dependency>
    73. <groupId>javax.servlet.jsp</groupId>
    74. <artifactId>jsp-api</artifactId>
    75. <version>2.2</version>
    76. <scope>provided</scope>
    77. </dependency>
    78. <!--JavaBean的get、set、全参、无参toString的注解开发-->
    79. <dependency>
    80. <groupId>org.projectlombok</groupId>
    81. <artifactId>lombok</artifactId>
    82. <version>1.18.12</version>
    83. <scope>provided</scope>
    84. </dependency>
    85. </dependencies>