redis mysql mybatis_springboot +mybatis+mysql+redis

一、准备工作

进入springboot的环境搭建页面https://start.spring.io/

输入需要集成的项目,例如集成springboot的web、redis、mysql、mybatis,如下图所示:

864a0340890d9dd01bc76931e3f23444.png

点击Generate Project 按钮,生成springboot的基础代码

springboot 的pom.xml内容如下

8f900a89c6347c561fdf2122f13be562.png

961ddebeb323a10fe0623af514929fc1.png

1 <?xml version="1.0" encoding="UTF-8"?>

2

3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4 4.0.0

5

6 org.springframework.boot

7 spring-boot-starter-parent

8 2.1.1.RELEASE

9

10

11 com.example

12 demo

13 0.0.1-SNAPSHOT

14 demo

15 Demo project for Spring Boot

16

17

18 1.8

19

20

21

22

23 org.springframework.boot

24 spring-boot-starter-data-redis

25

26

27 com.alibaba

28 fastjson

29 1.2.44

30

31

32 org.springframework.boot

33 spring-boot-starter-web

34

35

36 org.mybatis.spring.boot

37 mybatis-spring-boot-starter

38 1.3.2

39

40

41

42 mysql

43 mysql-connector-java

44 runtime

45

46

47 org.springframework.boot

48 spring-boot-starter-test

49 test

50

51

52

53

54

55

56

57

58 src/main/resources

59

60 **/**

61

62 false

63

64

65 src/main/java

66

67 **/*.properties

68 **/*.xml

69

70 false

71

72

73

74

75 org.springframework.boot

76 spring-boot-maven-plugin

77

78

79

80 org.apache.maven.plugins

81 maven-surefire-plugin

82

83 true

84

85

86

87

88 maven-source-plugin

89

90 true

91

92

93

94 compile

95

96 jar

97

98

99

100

101

102

103 org.apache.maven.plugins

104 maven-war-plugin

105

106 src/main/resources/**

107 yakult

108

109

110

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值