提交 0d50aadf 作者: 方治民

upd: 更新依赖配置

上级 057d4a9e
......@@ -7,11 +7,6 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'io.swagger:swagger-annotations:1.6.3'
}
test {
useJUnitPlatform()
}
package com.yiring.app;
import com.yiring.common.swagger.SwaggerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters;
@EntityScan(basePackageClasses = { Application.class, Jsr310JpaConverters.class })
@SpringBootApplication(scanBasePackageClasses = {SwaggerConfig.class})
@SpringBootApplication
public class Application {
public static void main(String[] args) {
......
......@@ -3,7 +3,7 @@ server:
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/basic?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://127.0.0.1:3306/basic?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: root
password: 123456
jpa:
......
dependencies {
implementation project(':basic-common:core')
implementation 'cn.dev33:sa-token-spring-boot-starter:1.27.0'
}
test {
useJUnitPlatform()
implementation "cn.dev33:sa-token-spring-boot-starter:${saTokenVersion}"
}
\ No newline at end of file
......@@ -13,4 +13,6 @@ sa-token:
# token风格
token-style: uuid
# 是否输出操作日志
is-log: false
\ No newline at end of file
is-log: false
# 是否在初始化配置时打印版本字符画
is-print: false
\ No newline at end of file
......@@ -58,7 +58,7 @@ public enum Status {
/**
* 未知错误
*/
UNKNOWN_ERROR(500, "服务器错误"),
UNKNOWN_ERROR(500, "未知错误"),
/**
* API 未实现
......
......@@ -4,5 +4,5 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
// swagger
implementation 'com.github.xiaoymin:knife4j-spring-boot-starter:3.0.3'
implementation "com.github.xiaoymin:knife4j-spring-boot-starter:${knife4jVersion}"
}
\ No newline at end of file
buildscript {
ext {
knife4jVersion = '3.0.3'
saTokenVersion = '1.27.0'
}
}
plugins {
id 'org.springframework.boot' version '2.5.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
......@@ -35,7 +42,17 @@ subprojects {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}
[compileJava,compileTestJava,javadoc]*.options*.encoding ='UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
bootJar {
enabled = false
}
test {
useJUnitPlatform()
}
}
\ No newline at end of file
pluginManagement {
repositories {
maven { url "https://maven.aliyun.com/repository/gradle-plugin"
}
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
}
}
rootProject.name = 'basic'
include 'app'
include 'basic-auth'
include 'basic-common'
include 'basic-common:core'
include 'basic-common:util'
include 'basic-common:swagger'
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论