tlias管理系统--阿里云参数配置化&yml配置文件介绍
This commit is contained in:
@@ -21,16 +21,16 @@ import java.util.UUID;
|
|||||||
@Component
|
@Component
|
||||||
public class AliOSSUtils {
|
public class AliOSSUtils {
|
||||||
|
|
||||||
/*@Value("${aliyun.oss.endpoint}")
|
@Value("${aliyun.oss.endpoint}")
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
@Value("${aliyun.oss.bucketName}")
|
@Value("${aliyun.oss.bucketName}")
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
@Value("${aliyun.oss.region}")
|
@Value("${aliyun.oss.region}")
|
||||||
private String region ;*/
|
private String region ;
|
||||||
|
|
||||||
private String endpoint = "https://oss-cn-hangzhou.aliyuncs.com";
|
// private String endpoint = "https://oss-cn-hangzhou.aliyuncs.com";
|
||||||
private String bucketName = "inmind-test1";
|
// private String bucketName = "inmind-test1";
|
||||||
private String region = "cn-hangzhou";
|
// private String region = "cn-hangzhou";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实现上传图片到OSS
|
* 实现上传图片到OSS
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
# 应用服务 WEB 访问端口
|
|
||||||
server.port=8080
|
|
||||||
#下面这些内容是为了让MyBatis映射
|
|
||||||
#指定Mybatis的Mapper文件
|
|
||||||
mybatis.mapper-locations=classpath:mappers/*xml
|
|
||||||
#指定Mybatis的实体目录
|
|
||||||
mybatis.type-aliases-package=com.inmind.mybatis.entity
|
|
||||||
|
|
||||||
#驱动类名称
|
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
||||||
#数据库连接的url
|
|
||||||
spring.datasource.url=jdbc:mysql://localhost:3306/tlias2
|
|
||||||
#连接数据库的用户名
|
|
||||||
spring.datasource.username=root
|
|
||||||
#连接数据库的密码
|
|
||||||
spring.datasource.password=1234
|
|
||||||
|
|
||||||
|
|
||||||
#输出mybatis的日志
|
|
||||||
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
#mybatis 驼峰自动映射
|
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
|
||||||
|
|
||||||
#文件上传配置
|
|
||||||
#单个文件上传的大小限制
|
|
||||||
spring.servlet.multipart.max-file-size=10MB
|
|
||||||
#一次请求文件上传的大小限制
|
|
||||||
spring.servlet.multipart.max-request-size=100MB
|
|
||||||
Reference in New Issue
Block a user