One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| func loadStdin() string { | |
| info, err := os.Stdin.Stat() | |
| if err != nil { | |
| return "" | |
| } | |
| if info.Mode()&os.ModeCharDevice != 0 || info.Size() <= 0 { | |
| return "" | |
| } |
| [Unit] | |
| Description=My Service | |
| After=syslog.target | |
| [Service] | |
| ExecStart=/opt/java-8-home/bin/java -Xms256m -Xmx4G -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai -jar /opt/playground/playground.jar --spring.profiles.active=dev --server.port=3323 | |
| SuccessExitStatus=143 | |
| [Install] | |
| WantedBy=multi-user.target |
| TIMESTAMP := $(shell /bin/date "+%F %T") | |
| NAME := snowflake | |
| VERSION := 1.0.1 | |
| LDFLAGS := -s -w \ | |
| -X 'main.BuildVersion=$(VERSION)' \ | |
| -X 'main.BuildGitBranch=$(shell git describe --all)' \ | |
| -X 'main.BuildGitRev=$(shell git rev-list --count HEAD)' \ | |
| -X 'main.BuildGitCommit=$(shell git rev-parse HEAD)' \ | |
| -X 'main.BuildDate=$(shell /bin/date "+%F %T")' |
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | |
| <properties> | |
| <comment>comment</comment> | |
| <entry key="key">value</entry> | |
| </properties> |
| RUN apt-get update && apt-get install -y \ | |
| aufs-tools \ | |
| automake \ | |
| build-essential \ | |
| curl \ | |
| all\ | |
| your\ | |
| other\ | |
| packages && \ | |
| rm -rf /var/lib/apt/lists/* |
| package com.github.yingzhuo.carnival.mvc.autoconfig; | |
| import lombok.Getter; | |
| import lombok.Setter; | |
| import lombok.val; | |
| import org.apache.catalina.connector.Connector; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | |
| import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; |