Commit 280095c9 authored by 喻训浩's avatar 喻训浩

初始化

parents
Pipeline #291 failed with stages
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.vtstar</groupId>
<artifactId>zhongtong-avi-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>zhongtong-avi-service</name>
<description>zhongtong-service</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<springboot.version>2.1.1.RELEASE</springboot.version>
<spring.version>5.1.3.RELEASE</spring.version>
<mybatis.version>1.3.2</mybatis.version>
<pagehelper.version>1.2.5</pagehelper.version>
<mysql.version>8.0.11</mysql.version>
<swagger.version>1.8.0.RELEASE</swagger.version>
<netty.version>4.1.31.Final</netty.version>
</properties>
<dependencies>
<!-- base -->
<dependency>
<groupId>net.vtstar</groupId>
<artifactId>user-spring-boot-starter</artifactId>
<version>0.0.1-mysql-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.54</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>
<!--fastdfs -->
<dependency>
<groupId>com.luhuiguo</groupId>
<artifactId>fastdfs-spring-boot-starter</artifactId>
<version>0.2.0</version>
</dependency>
<!-- sql server -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.2.2.jre8</version>
<scope>runtime</scope>
</dependency>
<!-- TCP -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<!-- optional & test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- Export -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.md</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<configuration>
<configurationFile>src/main/resources/mybatis-generator/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.7</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
package net.vtstar.zhongtong.avi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
package net.vtstar.zhongtong.avi.demo.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import net.vtstar.user.search.controller.vo.SearchVo;
import net.vtstar.utils.domain.Return;
import net.vtstar.zhongtong.avi.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/api/demo")
@Api(description = "星期配置")
public class DemoController {
@Autowired
private DemoService demoService;
@ApiOperation("列表")
@PostMapping("/page")
public Return demoList(@RequestBody SearchVo pageFilter) {
return Return.success(demoService.pageList(pageFilter.toJSONObject()));
}
}
package net.vtstar.zhongtong.avi.demo.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.vtstar.user.mybatis.domain.CommonField;
import net.vtstar.user.search.Search;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@ApiModel(value = "测试用类")
@Data
@Search(code = "DEMO")
@Table(name = "demo")
public class Demo {
@Column(name = "id")
private Long id;
@ApiModelProperty(notes = "名字")
@Column(name = "name")
@NotNull(message = "name is null")
@Search
private String name;
}
package net.vtstar.zhongtong.avi.demo.mapper;
import net.vtstar.user.mybatis.BaseMapper;
import net.vtstar.zhongtong.avi.demo.domain.Demo;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface DemoMapper extends BaseMapper<Demo> {
}
package net.vtstar.zhongtong.avi.demo.service;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import net.vtstar.user.mybatis.provider.Operation;
import net.vtstar.user.mybatis.provider.WhereFilter;
import net.vtstar.user.search.service.SearchService;
import net.vtstar.zhongtong.avi.demo.domain.Demo;
import net.vtstar.zhongtong.avi.demo.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class DemoService {
@Autowired
private DemoMapper demoMapper;
@Autowired
private SearchService searchService;
/**
* 分页查询
*/
public List<Demo> pageList(JSONObject pageFilter) {
PageHelper.startPage(pageFilter.getIntValue("pageNum"), pageFilter.getIntValue("pageSize"));
return demoMapper.findList(searchService.pageFilter2Filter(pageFilter, new WhereFilter() {{
// 查询所有状态的数据,否则默认查询状态为1的数据
addFilter(Demo.class, "status", Operation.NOT_EQUAL, "");
}}), Demo.class);
}
}
package net.vtstar.zhongtong.avi.global.advice;
import lombok.extern.slf4j.Slf4j;
import net.vtstar.user.exception.KnownRuntimeException;
import net.vtstar.utils.domain.Return;
import net.vtstar.utils.exception.KnownException;
import org.apache.ibatis.exceptions.PersistenceException;
import org.mybatis.spring.MyBatisSystemException;
import org.springframework.core.annotation.Order;
import org.springframework.validation.BindException;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
@Slf4j
@Order(1)
@RestControllerAdvice("net.vtstar.huaying.mes")
public class BaseExceptionAdvice {
@ExceptionHandler(value = Exception.class)
public Return ExceptionHandler(Exception e) {
log.error(e.getMessage());
if (e instanceof BindException) {
BindException ex = (BindException) e;
List<ObjectError> allErrors = ex.getAllErrors();//捕获的所有错误对象
ObjectError error = allErrors.get(0);
String defaultMessage = error.getDefaultMessage();//异常内容
return Return.failed(defaultMessage);
} else if (e instanceof MethodArgumentNotValidException) {
MethodArgumentNotValidException ex = (MethodArgumentNotValidException) e;
List<ObjectError> errors = ex.getBindingResult().getAllErrors();
String message = errors.get(0).getDefaultMessage();
return Return.failed(message);
} else if (e instanceof IllegalArgumentException) {
return Return.failed(e.getMessage());
} else if (e instanceof IllegalStateException) {
return Return.failed(e.getMessage());
} else if (e instanceof KnownException) {
return Return.failed(e.getMessage());
} else if (e instanceof KnownRuntimeException) {
return Return.failed(e.getMessage());
} else if (e instanceof MyBatisSystemException) {
MyBatisSystemException ex = (MyBatisSystemException) e;
if (ex.getCause() instanceof PersistenceException) {
PersistenceException pex = (PersistenceException) ex.getCause();
if (pex.getCause() instanceof KnownRuntimeException) {
return Return.failed(pex.getCause().getMessage());
} else if (pex.getCause() instanceof InvocationTargetException) {
InvocationTargetException iex = (InvocationTargetException) pex.getCause();
if (iex != null && iex.getCause() != null
&& iex.getCause() instanceof KnownRuntimeException) {
return Return.failed(iex.getCause().getMessage());
}
}
}
log.error(e.getMessage(), e);
return Return.failed("内部错误");
} else {
log.error(e.getMessage(), e);
return Return.failed("内部错误");
}
}
}
package net.vtstar.zhongtong.avi.global.config;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableCaching
public class CacheConfig {
@Bean
CacheManager cacheManager() {
ConcurrentMapCacheManager cacheManager = new ConcurrentMapCacheManager();
return cacheManager;
}
@Bean
public Cache ovenTemperatureCache(CacheManager cacheManager) {
return cacheManager.getCache("ovenTemperatureCache");
}
}
package net.vtstar.zhongtong.avi.global.config;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.autoconfigure.jdbc.JdbcProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.util.StringUtils;
import javax.sql.DataSource;
@Configuration
public class DataSourceConfig {
@Bean
@Primary
@ConfigurationProperties(prefix = "spring.datasource")
HikariDataSource dataSource(DataSourceProperties properties) {
HikariDataSource dataSource = properties.initializeDataSourceBuilder().type(HikariDataSource.class).build();
if (StringUtils.hasText(properties.getName())) {
dataSource.setPoolName(properties.getName());
}
return dataSource;
}
}
package net.vtstar.zhongtong.avi.global.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
@Configuration
@EnableScheduling
public class SchedulingConfig {
}
package net.vtstar.zhongtong.avi.global.config;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableSwagger2Doc
public class SwaggerConfig {
}
\ No newline at end of file
package net.vtstar.zhongtong.avi.global.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 审批流程中的各种状态
*/
@ApiModel(value = "审批状态")
public enum ApprovalStatus {
@ApiModelProperty(notes = "新建")
NEWLY,
@ApiModelProperty(notes = "提交")
COMMIT,
@ApiModelProperty(notes = "处理中")
PROCESSING,
@ApiModelProperty(notes = "完成")
FINISH,
@ApiModelProperty(notes = "已发布")
PUBLISH,
@ApiModelProperty(notes = "退回")
RETURN,
@ApiModelProperty(notes = "中止")
BREAK,
@ApiModelProperty(notes = "停用")
STOP
}
package net.vtstar.zhongtong.avi.global.domain;
import io.swagger.annotations.ApiModel;
@ApiModel("状态")
public enum CommonStatus {
/**
* 已停用
*/
STOP("0"),
/**
* 新建立
*/
CREATE("1"),
/**
* 审核中
*/
CHECKING("2"),
/**
* 审核通过
*/
CHECK_FINISH("3"),
/**
* 已拒绝
*/
RETURN("4"),
/**
* 生效
*/
ENABLE("5"),
/**
* 失效
*/
DISABLE("6"),
/**
* 已删除
*/
DELETE("9");
private String value;
CommonStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
package net.vtstar.zhongtong.avi.global.domain;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Api("分页查询参数")
@Data
public class PageQueryParam {
@ApiParam(value = "请求页码", required = true, defaultValue = "1")
@Min(value = 0, message = "请求页码(pageNum)不能小于0")
@NotNull(message = "pageNum is null")
private Integer pageNum;
@ApiParam(value = "页容量", required = true, defaultValue = "20")
@Min(value = 0, message = "页容量(pageSize)不能小于0")
@NotNull(message = "pageSize is null")
private Integer pageSize;
@ApiParam("模糊查询条件")
private String criteria;
}
package net.vtstar.zhongtong.avi.global.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 设备运行的各种状态
*/
@ApiModel(value = "运行状态")
public enum RunningStatus {
@ApiModelProperty(notes = "运行")
RUN("运行"),
@ApiModelProperty(notes = "库存")
STOCK("库存"),
@ApiModelProperty(notes = "故障")
FAULT("故障");
private String value;
RunningStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
package net.vtstar.zhongtong.avi.global.interceptor;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.context.annotation.Configuration;
@Configuration
@Aspect
public class PageAspect {
//@Pointcut("execution(* net.vtstar.huaying.mes..*.controller.*.*(..))")
public void pointCut() {
}
/**
* 前置通知
*/
//@Around("pointCut()")
public Object proceed(ProceedingJoinPoint joinPoint) throws Throwable {
String[] argNames = ((MethodSignature)joinPoint.getSignature()).getParameterNames();
Object[] args = joinPoint.getArgs();
for (int i = 0; i <argNames.length ; i++) {
String argName=argNames[i];
if(argName.equals("pageNum")&&args[i]!=null){
if(Integer.valueOf(args[i].toString())<0){
args[i]=0;
}
}
if(argName.equals("pageSize")&&args[i]!=null){
if(Integer.valueOf(args[i].toString())<0){
args[i]=20;
}
}
}
return joinPoint.proceed(args);
}
}
package net.vtstar.zhongtong.avi.global.interceptor;
import com.alibaba.fastjson.JSONObject;
import net.vtstar.utils.domain.Return;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
@Component
public class ParamCheckInterceptor extends HandlerInterceptorAdapter {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
String pageNum = request.getParameter("pageNum");
if (!StringUtils.isEmpty(pageNum) && Integer.parseInt(pageNum) < 1) {
String msg = JSONObject.toJSONString(Return.failed("pageNum 不能小于1"));
response.reset();
response.setContentType("application/json;charset=UTF-8");
try (OutputStream outputStream = response.getOutputStream()) {
outputStream.write(msg.getBytes());
outputStream.flush();
}
return false;
}
return true;
}
}
package net.vtstar.zhongtong.avi.global.interceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebConfigurer implements WebMvcConfigurer {
@Autowired
private ParamCheckInterceptor paramCheckInterceptor;
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(paramCheckInterceptor).addPathPatterns("/**");
}
}
# Mysql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://10.100.172.135:3306/zhongtong_dev?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
spring.datasource.username=zhongtongdev
spring.datasource.password=123456
\ No newline at end of file
spring.profiles.include=datasource,mybatis,quartz,swagger,security
\ No newline at end of file
spring.profiles.include=datasource,mybatis,quartz,swagger,security
# Mysql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://10.100.172.135:3306/zhongtong_dev?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
spring.datasource.username=zhongtongdev
spring.datasource.password=123456
\ No newline at end of file
# mybatis
mybatis.mapper-locations=classpath:mapper/**/*.xml
mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
mybatis.configuration.call-setters-on-nulls=true
\ No newline at end of file
# scheduler(Quartz)
spring.quartz.job-store-type=jdbc
spring.quartz.jdbc.initialize-schema=never
spring.quartz.jdbc.comment-prefix=--
spring.quartz.startupDelay=10s
spring.quartz.properties.org.quartz.scheduler.instanceName=myScheduler-mes
spring.quartz.properties.org.quartz.scheduler.instanceId=AUTO
spring.quartz.properties.org.quartz.jobStore.isClustered=true
spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=10000
spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
spring.quartz.properties.org.quartz.jobStore.useProperties=false
spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
spring.quartz.properties.org.quartz.threadPool.threadCount=25
spring.quartz.properties.org.quartz.threadPool.threadPriority=5
spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
\ No newline at end of file
# security
# JWT
auth.jwt.claims.issuer=VT-MES
auth.jwt.claims.audience=Web
auth.jwt.claims.subject=Auth
auth.jwt.claims.expiration-time-minutes=43200
auth.jwt.auth-header=Authorization
auth.jwt.type=forever
auth.jwt.secret=mySecret
# CORS
auth.cors.allow-credentials=true
auth.cors.allowed-origins=*
auth.cors.allowed-headers=*
auth.cors.allowed-methods=*
auth.cors.path=/monitoring/dataBoard,\
/monitoring/ovenIcebox
# static path
auth.path-permit-all.method-get=/,\
/*.html,\
/favicon.ico,\
/**/*.html,\
/**/*.css,\
/**/*.js,\
/**/*.png,\
/**/*.jpg,\
/**/*.ttf,\
/**/*.woff,\
/**/*.wav,\
/**/*.gif
auth.path-permit-all.method-all=/auth/**,\
/webjars/**/*,\
/v2/api-docs,\
/swagger-ui.html,\
/swagger-resources,\
/swagger-resources/configuration/ui,\
/swagger-resources/configuration/security,\
/actuator/**,\
/api/app/downLoad,\
/api/v1/user/login/users,\
/api/app/getAppVersion,\
/api/v2/workshop/all,\
/api/v2/workshop/page,\
/api/v2/workshop/tree,\
/api/v2/proLine/getByWorkshopId/*,\
/api/v2/workStation/getByProLineId/**,\
/api/v1/user/loginUserCount,\
/api/v1/user/cleanLoginStatus/*,\
/api/v1/user/mainOperateUser,\
/api/app/newVersion,\
/api/crafts/program/insert/ballMounter,\
/api/execute/findStarting, \
/api/server/ping,\
/monitoring/dataBoard,\
/monitoring/ovenIcebox,\
/api/server/time,\
/api/scada/base/url,\
/api/monitorConfig/equipCode,\
/api/workPositionButton/buttonAuthList
auth.schedule.initial-delay=60000
auth.schedule.fixed-rate=300000
auth.licence.app-name=huaying-mes
auth.licence.key=78a88bc48be57e36a8b070c4fdb68a6750b03f951b2a978518cc9a9b25d6a30d1b19c969bc0627a72553f52802d0807280e8395e33cd00f94ff4f851e2148d28
auth.licence.private-key=30820155020100300d06092a864886f70d01010105000482013f3082013b02010002410083b0f1713b2fdef3afd7470de811de992244d1a322cd1166d120e7f0bc674b40a94db09b8a1de4c642149ce6c1498f68d5a7fe95a52f856946bc41066d2220cd020301000102401948513231f0c0d6fbfd5290e2eafb575ef2e364747bf6494d010a467785453700180a9f8897d9e36e60af559de62cca3680453f88ee9fba50d8d82111a2fa01022100c5bc3b4ea3a8fad451c1ff9b841b6e1b11ae2b7ca0a6b0d657fdc2ee1d13908d022100aa7ece62d98760f237dbd656e48e11fecb741cc1908e59e7edbe6e97ba3961410221009610718e0fe4a95fc32090e52c9048b2a06b67337114b0762b5739bdce314fed0221009a7653a8be86a5d00bc741026c02424f622789bddba6fbd0e154fb80be9829810220384f970492969e1e705088c35a1201529715eefb25358d341b8b74d7b5e1930e
# API-Controller
swagger.enabled=true
swagger.title=\u4e2d\u901a\u5ba2\u8f66AVI
swagger.version=0.1
swagger.contact.name=\u5C71\u4E1C\u4E07\u817E\u79D1\u6280\u6709\u9650\u516C\u53F8
swagger.base-path=/**
swagger.base-package=net.vtstar
swagger.authorization.name=JWT
swagger.authorization.key-name=Authorization
\ No newline at end of file
# log
spring.output.ansi.enabled=always
spring.main.banner-mode=off
logging.level.root=info
logging.level.net.vtstar=trace
spring.aop.auto=true
# server
server.port=8080
spring.servlet.multipart.max-file-size=1000MB
spring.servlet.multipart.max-request-size=2000MB
spring.servlet.multipart.enabled=true
spring.servlet.multipart.file-size-threshold=0B
spring.servlet.multipart.resolve-lazily=false
# i18n
spring.messages.basename=net.vtstar.user.i18n.messages,org.springframework.security.messages
spring.messages.always-use-message-format=true
spring.messages.use-code-as-default-message=true
package net.vtstar.zhongtong.avi;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTests {
@Test
public void contextLoads() {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment