Date: 28/04/2017
Superceded by 6. Add mailchimp as default contact me page provider
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
@Bean(name = "myThreadPoolTaskExecutor") | |
public TaskExecutor threadPoolTaskExecutor() { | |
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); | |
executor.setCorePoolSize(4); | |
executor.setMaxPoolSize(4); | |
executor.setThreadNamePrefix("executor"); | |
executor.initialize(); | |
return executor; | |
} |
@Async("myThreadPoolTaskExecutor") | |
public Object createPayload() { | |
// return payload pojo | |
} |
function get_emoji() { | |
if [ $? -eq 0 ]; then | |
echo '👍🏻' | |
else | |
echo '👎🏻' | |
fi | |
} | |
# get current branch in git repo | |
function parse_git_branch() { |
Date: 28/04/2017
Superceded by 6. Add mailchimp as default contact me page provider
Date: 28/04/2017
Accepted
Supercedes 5. Add custom contact me page to site
spring: | |
application: | |
name: survey-service | |
cloud: | |
config: | |
uri: http://localhost:8888 | |
label: 1.0.0 | |
encrypt: | |
keyStore: |
server: | |
port: 8888 | |
spring: | |
cloud: | |
config: | |
server: | |
encrypt: | |
enabled: false | |
git: | |
uri: ${HOME}/workspace/configuration/sample-boot-demo-configuration |
ALIAS_NAME="mytestkey" | |
KEYSTORE_SECRET="changeme" | |
KEYSTORE_PASSWORD="letmein" | |
VALIDITY_TIME=365 | |
echo "Creating server key, valid for $VALIDITY_TIME days" | |
keytool -genkeypair -alias $ALIAS_NAME -keyalg RSA \ | |
-dname "CN=Web Server,OU=Unit,O=Organization,L=City,S=State,C=US" \ | |
-keypass $KEYSTORE_SECRET -keystore server.jks -storepass $KEYSTORE_PASSWORD \ | |
-validity $VALIDITY_TIME |
package io.cybertech.boot.sample; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.cloud.config.server.EnableConfigServer; | |
@SpringBootApplication | |
@EnableConfigServer | |
public class ConfigServerApplication { |