Springboot所有的依赖

<properties>
    <maven.compiler.source>8maven.compiler.source>
    <maven.compiler.target>8maven.compiler.target>
    <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>

    
    <spring-boot.version>2.2.9.RELEASEspring-boot.version>
properties>





    
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-dependenciesartifactId>
                <version>${spring-boot.version}version>
                <type>pomtype>
                <scope>importscope>
            dependency>
        dependencies>
    dependencyManagement>
 


<dependencies>  
    
    
     
     <dependency> 
         <groupId>org.springframework.bootgroupId>
         <artifactId>spring-boot-starter-webartifactId>
     dependency>
    
    
    
     
     <dependency>
         <groupId>org.projectlombokgroupId>
         <artifactId>lombokartifactId>
     dependency>
    
    
    

     
    
     <dependency>
         <groupId>com.baomidougroupId>
         <artifactId>mybatis-plus-boot-starterartifactId>
         <version>3.5.2version>
     dependency>
    

     
     <dependency>
         <groupId>com.alibabagroupId>
         <artifactId>druid-spring-boot-starterartifactId>
         <version>1.2.6version>
     dependency>

     
     <dependency>
         <groupId>mysqlgroupId>
         <artifactId>mysql-connector-javaartifactId>
         <version>5.1.47version>
     dependency>
    
     

    
    
	
     <dependency>
         <groupId>org.springframework.bootgroupId>
         <artifactId>spring-boot-starter-testartifactId>
         <scope>testscope>
     dependency>
    
    
    
		
        <dependency>
            <groupId>cn.hutoolgroupId>
            <artifactId>hutool-allartifactId>
            <version>5.8.18version>
        dependency>
    
    
    
  	  
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-configuration-processorartifactId>
            <optional>trueoptional>
        dependency>
    
    
    
         
        <dependency>
            <groupId>org.mybatis.spring.bootgroupId>
            <artifactId>mybatis-spring-boot-starterartifactId>
            <version>1.3.2version>
        dependency>
    
    
            
        <dependency>
            <groupId>com.github.pagehelpergroupId>
            <artifactId>pagehelper-spring-boot-starterartifactId>
            <version>1.2.5version>
        dependency>
    
    

        <dependency>
            <groupId>com.baomidougroupId>
            <artifactId>kaptcha-spring-boot-starterartifactId>
            <version>1.1.0version>
        dependency>
    
    
        
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-aopartifactId>
        dependency>

    
    
            
        <dependency>
            <groupId>io.springfoxgroupId>
            <artifactId>springfox-swagger2artifactId>
            <version>2.9.2version>
        dependency>
    
        <dependency>
            <groupId>io.springfoxgroupId>
            <artifactId>springfox-swagger-uiartifactId>
            <version>2.9.2version>
        dependency>

 
        <dependency>
            <groupId>com.github.xiaoymingroupId>
            <artifactId>knife4j-spring-boot-starterartifactId>
            <version>2.0.4version>
        dependency>
    
    
    
        <dependency>
            <groupId>com.baomidougroupId>
            <artifactId>mybatis-plus-generatorartifactId>
            <version>3.5.2version>
        dependency>
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-freemarkerartifactId>
            <version>2.2.9.RELEASEversion>
        dependency>
        
    
    
    
       
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
                <version>2.2.9.RELEASEversion>
                <configuration>
                    <mainClass>com.qf.HomeWork.HomeApplicationmainClass>
                configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackagegoal>
                        goals>
                    execution>
                executions>
            plugin>
        plugins>
    build>


    
    
    
 dependencies>

配置文件

#配置数据源
spring:
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    username: root
    password: 2001
    url: jdbc:mysql://localhost:3306/test?useSSL=true&useUnicode=true&characterEncoding=utf8
    type: com.alibaba.druid.pool.DruidDataSource
#日期格式json
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
#图片上传大小 肯定存在 MultipartProperties这个类
  servlet:
    multipart:
      #单个文件最大大小
      max-file-size: 10MB
      #全部文件总大小
      max-request-size: 50MB

#  resources:
#    static-locations: classpath:/templates
#  debug: true
#mybatis 的必要配置,配置mapperxml文件的位置 类路径包括导入所有jar包的类路径下的所有文件夹下的所有Mapper.xml为映射文件。
mybatis:
  mapper-locations: classpath*:**/*Mapper.xml
#开启mybatis的sql日志。
logging:
  level:
    com.qf.HomeWork.mapper: debug

#验证码的配置
kaptcha:
  height: 50
  width: 200
  content:
    length: 2
    source: abcdefghjklmnopqrstuvwxyz23456789
    space: 2
  font:
    color: black
    name: Arial
    size: 40
  background-color:
    from: lightGray
    to: white
  border:
    enabled: true
    color: black
    thickness: 1
#自定义验证码超时时间
qf:
  kapchar:
    timeout: 60
  fileupload:
    path: F:\pathpng\

#debug: true
server:
  port: 8080
com:
  qf:
    swagger:
      package-name: com.qf.HomeWork.controller
      contact-name: 蒋铭基
      contact-url: http://www.baidu.com
      email: [email protected]
      title: 蒋铭基的接口API文档
      description: 这是蒋铭基项目的接口描述文档的描述信息。很棒!
      version: 1.1.0

你可能感兴趣的:(SpringBoot,spring,boot,后端,java)