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
| /** | |
| * Maps data from a JDBC {@code ResultSet} into Java 14 record objects of type T. | |
| * | |
| * @author <a href="mailto:josh@joshlong.com">Josh Long</a> | |
| */ | |
| class RecordRowMapper<T> implements RowMapper<T> { | |
| private final Log logger = LogFactory.getLog(getClass()); | |
| private final Map<String, RecordComponent> mappedFields = new HashMap<>(); |
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
| package com.example.fourteen; | |
| import lombok.extern.log4j.Log4j2; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.boot.context.event.ApplicationReadyEvent; | |
| import org.springframework.context.event.EventListener; | |
| import org.springframework.util.Assert; | |
| import java.util.Date; |
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
| package com.example.reservationservice; | |
| import io.r2dbc.postgresql.PostgresqlConnectionConfiguration; | |
| import io.r2dbc.postgresql.PostgresqlConnectionFactory; | |
| import io.r2dbc.spi.ConnectionFactory; | |
| import lombok.AllArgsConstructor; | |
| import lombok.Data; | |
| import lombok.NoArgsConstructor; | |
| import lombok.extern.log4j.Log4j2; | |
| import org.springframework.boot.SpringApplication; |
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 java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.net.URL; | |
| // java Curl.java | |
| public class Curl { |
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
| #!/usr/bin/env python | |
| import os | |
| import subprocess | |
| import sys | |
| if __name__ == '__main__': | |
| def run(c): | |
| print('running: %s' % c) |
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
| package com.example.demo; | |
| import lombok.extern.java.Log; | |
| import lombok.extern.log4j.Log4j2; | |
| import org.springframework.beans.BeansException; | |
| import org.springframework.beans.factory.BeanNameAware; | |
| import org.springframework.beans.factory.ObjectFactory; | |
| import org.springframework.beans.factory.support.BeanDefinitionBuilder; | |
| import org.springframework.beans.factory.support.BeanDefinitionRegistry; | |
| import org.springframework.boot.ApplicationArguments; |
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
| package com.example.demo | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| import org.springframework.boot.runApplication | |
| import org.springframework.context.annotation.Bean | |
| import org.springframework.web.reactive.function.BodyInserters.fromObject | |
| import org.springframework.web.reactive.function.server.ServerResponse.ok | |
| import org.springframework.web.reactive.function.server.router | |
| @SpringBootApplication |
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
| package com.example.demo; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.util.StringUtils; | |
| import org.springframework.web.bind.annotation.GetMapping; | |
| import org.springframework.web.bind.annotation.RestController; | |
| import java.util.Map; |
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
| package com.example.feed | |
| import com.rometools.rome.feed.synd.SyndEntry | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| import org.springframework.boot.builder.SpringApplicationBuilder | |
| import org.springframework.context.support.beans | |
| import org.springframework.core.io.UrlResource | |
| import org.springframework.integration.dsl.IntegrationFlows | |
| import org.springframework.integration.feed.dsl.Feed | |
| import org.springframework.integration.handler.GenericHandler |
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
| package com.example; | |
| import org.springframework.beans.factory.InjectionPoint; | |
| import org.springframework.beans.factory.ObjectFactory; | |
| import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Scope; | |
| import org.springframework.stereotype.Component; |