2020-08-28-x
2020-08-28
todo-list
record-list
1 2 3 4 5
| mvn install:install-file -Dfile=directory-20130125.jar -DgroupId=com.foxconn.shzbg -DartifactId=directory -Dversion=2013.1.25 -Dpackaging=jar
mvn install:install-file -Dfile=sip-commons-20110107.jar -DgroupId=com.foxconn.shzbg -DartifactId=sip -Dversion=2011.1.7 -Dpackaging=jar
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<dependency> <groupId>org.jboss.client</groupId> <artifactId>jbossall-client</artifactId> <version>4.2.3.GA</version> </dependency>
<repositories> <repository> <id>repo.spring.io</id> <name>repo.spring.io</name> <url>https://repo.spring.io/plugins-release/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| package com.foxconn.mcebg.portal.config;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; import com.google.common.collect.Lists; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.*; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spi.service.contexts.SecurityContext; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2;
import java.util.ArrayList; import java.util.List;
@Configuration @EnableSwagger2 @EnableKnife4j @Import(BeanValidatorPluginsConfiguration.class) public class SwaggerConfiguration {
@Bean(value = "defaultApi2") public Docket defaultApi2() { Docket docket=new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .groupName("2.X版本") .select() .apis(RequestHandlerSelectors.basePackage("com.foxconn.mcebg.portal.controller")) .paths(PathSelectors.any()) .build().securityContexts(Lists.newArrayList(securityContext())).securitySchemes(Lists.<SecurityScheme>newArrayList(apiKey())); return docket; }
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("SystemPortal系统门户 RESTful APIs") .description("# SystemPortal系统门户 RESTful APIs") .termsOfServiceUrl("http://10.244.186.86:8081/") .contact(new Contact("向波任(C3005579)", "http://10.244.186.86:8081/doc.html", "hzcd-mis-sys4@mail.foxconn.com")) .version("1.0") .build(); }
private ApiKey apiKey() { return new ApiKey("BearerToken", "Authorization", "header"); }
private SecurityContext securityContext() { return SecurityContext.builder() .securityReferences(defaultAuth()) .forPaths(PathSelectors.regex("/.*")) .build(); }
private List<SecurityReference> defaultAuth() { List<SecurityReference> list = new ArrayList<>(); AuthorizationScope[] scopes = new AuthorizationScope[1]; scopes[0] = new AuthorizationScope("", ""); SecurityReference sr = new SecurityReference("", scopes); list.add(sr);
return list; } }
|
- 本文标题:2020-08-28-x
- 本文作者:Xplorist
- 创建时间:2020-08-28 13:30:13
-
本文链接:https://xplorist.tech/2020/08/28/550d4ab12d8d/
-
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
$tools-item-width = 2.2rem
$tools-item-font-size = 1.1rem
$tools-item-border-radius = 0.1rem
.side-tools-container {
position relative
.tools-item {
width $tools-item-width
height $tools-item-width
margin-bottom 0.2rem
color var(--default-text-color)
font-size $tools-item-font-size
background var(--background-color)
border-right none
border-radius $tools-item-border-radius
box-shadow 0.1rem 0.1rem 0.2rem var(--shadow-color)
cursor pointer
i {
color var(--default-text-color)
}
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
i {
color var(--background-color)
}
}
+keep-tablet() {
width $tools-item-width * 0.9
height $tools-item-width * 0.9
margin-bottom 0.2rem
font-size $tools-item-font-size * 0.9
}
&.rss {
a {
width 100%
height 100%
border-radius $tools-item-border-radius
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
}
}
}
}
.side-tools-list {
transform translateX(100%)
opacity 0
transition-t("transform, opacity", "0, 0", "0.2, 0.2", "linear, linear")
.tool-expand-width {
+keep-tablet() {
display none
}
}
&.show {
transform translateX(0)
opacity 1
}
}
.exposed-tools-list {
if (hexo-config('style.scroll.percent.enable') == true) {
.tool-scroll-to-top {
display none
&.show {
display flex
}
&:hover {
.percent {
display none
}
.arrow-up {
display flex
}
}
.arrow-up {
display none
}
.percent {
display flex
font-size 1rem
}
}
}
}
}