Merge branch 'master' into 'uat'
Master See merge request eshop/biz_service_ebtp_project!36
This commit is contained in:
@ -73,7 +73,7 @@ public class OperLogAspect {
|
|||||||
boolean success = true;
|
boolean success = true;
|
||||||
try {
|
try {
|
||||||
return joinPoint.proceed();
|
return joinPoint.proceed();
|
||||||
} catch (Throwable e) {
|
} catch (Exception e) {
|
||||||
success = false;
|
success = false;
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -14,8 +14,8 @@ import springfox.documentation.service.Contact;
|
|||||||
import springfox.documentation.spi.DocumentationType;
|
import springfox.documentation.spi.DocumentationType;
|
||||||
import springfox.documentation.spring.web.plugins.Docket;
|
import springfox.documentation.spring.web.plugins.Docket;
|
||||||
|
|
||||||
@EnableKnife4j
|
//@EnableKnife4j
|
||||||
@Configuration
|
//@Configuration
|
||||||
public class SwaggerConfiguration {
|
public class SwaggerConfiguration {
|
||||||
|
|
||||||
@Value("${spring.application.name}")
|
@Value("${spring.application.name}")
|
||||||
@ -27,7 +27,7 @@ public class SwaggerConfiguration {
|
|||||||
@Value("${mconfig.host-name}")
|
@Value("${mconfig.host-name}")
|
||||||
private String hostName;
|
private String hostName;
|
||||||
|
|
||||||
@Bean
|
// @Bean
|
||||||
public Docket tenderRestApi() {
|
public Docket tenderRestApi() {
|
||||||
return new Docket(DocumentationType.SWAGGER_2)
|
return new Docket(DocumentationType.SWAGGER_2)
|
||||||
.groupName(groupName)
|
.groupName(groupName)
|
||||||
@ -38,7 +38,7 @@ public class SwaggerConfiguration {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
// @Bean
|
||||||
public ApiInfo tenderApiInfo() {
|
public ApiInfo tenderApiInfo() {
|
||||||
String url = hostName+":"+port;
|
String url = hostName+":"+port;
|
||||||
return new ApiInfoBuilder()
|
return new ApiInfoBuilder()
|
||||||
|
Reference in New Issue
Block a user