which java
ls -al path
/usr/libexec/java_home -V
import org.apache.commons.fileupload.FileItem; | |
import org.apache.commons.fileupload.disk.DiskFileItem; | |
import org.apache.commons.io.IOUtils; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.http.MediaType; | |
import org.springframework.stereotype.Service; | |
import org.springframework.web.multipart.MultipartFile; | |
import org.springframework.web.multipart.commons.CommonsMultipartFile; | |
import java.io.IOException; |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import lombok.Builder; | |
import lombok.EqualsAndHashCode; | |
import lombok.Getter; | |
import lombok.RequiredArgsConstructor; | |
import lombok.ToString; | |
import lombok.extern.slf4j.Slf4j; |
package io.github.syakuis.oauth2.authorization.security.endpoint; | |
import lombok.extern.slf4j.Slf4j; | |
import org.junit.jupiter.api.Test; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import static org.junit.jupiter.api.Assertions.*; |
@Configuration | |
public class DataInitializationConfiguration { | |
@Bean | |
public Jackson2RepositoryPopulatorFactoryBean repositoryPopulator() { | |
Jackson2RepositoryPopulatorFactoryBean factory = new Jackson2RepositoryPopulatorFactoryBean(); | |
factory.setResources(new Resource[] { new ClassPathResource("LocalWebUser.json"), new ClassPathResource("Role.json") }); | |
return factory; | |
} | |
} |
create table oauth_client_details ( | |
client_id VARCHAR(255) PRIMARY KEY, | |
resource_ids VARCHAR(255), | |
client_secret VARCHAR(255), | |
scope VARCHAR(255), | |
authorized_grant_types VARCHAR(255), | |
web_server_redirect_uri VARCHAR(255), | |
authorities VARCHAR(255), | |
access_token_validity INTEGER, | |
refresh_token_validity INTEGER, |
version: '3' | |
services: | |
rabbitmq: | |
image: 'rabbitmq:3-management' | |
container_name: 'rabbitmq' | |
hostname: 'rabbitmq' | |
ports: | |
- '15672:15672' | |
- '5672:5672' |
import lombok.extern.slf4j.Slf4j; | |
import org.flywaydb.core.internal.dbsupport.FlywaySqlException; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.core.env.Environment; |
def failureReport = { text -> "\r\n------------ Finish Report ------------\r\n${text}------------ Finish Report Report ------------\r\n" } | |
def botUrl = "https://api.telegram.org/bot${env.BOT_TOKEN}/sendMessage" | |
def bot = { text -> sh "curl -s -X POST ${botUrl} -d chat_id=${env.BOT_CHAT_ID} -d text='#${env.BUILD_ID} ${text}'" } | |
node { | |
bot("build starting") | |
def mvnHome | |
stage('Preparation') { | |
if (env.USE_GIT_PULL == "true") { |