This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Author LinkinStar,liuyuyu | |
## UPDATE 2019-01-05 | |
version="1.0.1"; | |
jarName=$2 | |
appName=jarName | |
apolloMeta=http://172.20.5.103:8080 | |
projectDir=/home/liuyuyu/data/web/$jarName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
这些配置是可继承的,如果是多模块项目,放到父工程即可 | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
<includes> | |
<include>**/*</include> | |
</includes> | |
</resource> | |
<resource> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.mvc.throw-exception-if-no-handler-found=true | |
spring.resources.add-mappings=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.net.httpserver.HttpContext; | |
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import com.sun.net.httpserver.HttpServer; | |
import lombok.Data; | |
import org.junit.Test; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.InetSocketAddress; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Class<?>> validAnnotationList = new ArrayList<>(); | |
validAnnotationList.add(RequestMapping.class); | |
List<Object> controllerList = new ArrayList<>(); | |
controllerList.addAll(this.applicationContext.getBeansWithAnnotation(Controller.class).values()); | |
List<SysResource> resourceEntityList = new ArrayList<>(); | |
AtomicLong id = new AtomicLong(); | |
for (Object controller : controllerList) { | |
Class<?> clazz = controller.getClass(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn versions:set -DnewVersion=2.0.0-SNAPSHOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FunctionalInterface | |
public interface A<T, R> extends Function<T, R>, Serializable { | |
} |