Introduction httpClient on Java11 / Java11時代のHTTPアクセス再入門tamtam180
This document provides an overview and refreshers on HTTP access in Java 11. It discusses HttpUrlConnection, Apache HttpClient, and Java's new HttpClient. For HttpUrlConnection, it covers GET requests, modifying request methods and headers, sending request bodies, cookies, proxies, redirects, basic authentication, and debugging. For Apache HttpClient, it discusses GET requests, Accept headers, gzip encoding, query strings, connection pools, modifying request headers and POST requests. It also covers cookies, redirects, retries and proxies for Apache HttpClient.
This document describes how to configure Spring Security for authentication and authorization in a web application. It defines a WebSecurityConfig class that configures HTTP security with roles like OWNER and MANAGER for access control. It also defines a UserDetailsManager service for loading users and a User entity class implementing UserDetails. Tests are shown for security configuration, login, access control and more using Spring Security's test utilities.
1. The document discusses RESTful APIs and gRPC, comparing their characteristics and use cases.
2. RESTful APIs typically use HTTP and JSON to access resources via URLs while gRPC uses protocol buffers and HTTP/2 for efficient streaming and RPC.
3. gRPC is better suited for microservices and mobile apps due to its ability to handle streaming and performance, while REST is more widely used due to its simplicity and support in most languages.
Spring Batch is a framework for batch processing in Java. It allows developers to process large volumes of records by dividing the work into small chunks called steps. The framework includes components like job launcher, job repository, step, item reader, item processor and item writer to process a batch job. Jobs are composed of steps, and steps use readers, processors and writers to read, process and write data.
Event : Visual Studio Users Community Japan #1
Date : 2019/09/14
ソフトウェア/サービス開発において最も後回しにされるものの代表が「パフォーマンスの向上」です。C#/.NET の最大の武器は開発生産性ですが、C# 7.0 以降はパフォーマンス向上のための機能追加が多数行われています。いくつかのポイントを押さえることで実装時からより高速なコードを書くことができるようになります。
このドキュメントでは、そんなポイントとなる箇所をふんだんにお届けします。
This document discusses Spring Boot and how it provides automatic configuration for common web application functionalities like JPA, security, and Spring MVC. It also covers how Spring Boot uses starter dependencies to select libraries automatically and provides tools like the CLI and Spring Initializr. The document then demonstrates creating a basic Spring Boot application and discusses testing Spring Boot applications using techniques like mocking Spring MVC and integrating tests.
Building a Spring Boot Application - Ask the Audience!🎤 Hanno Embregts 🎸
This document provides an overview of building applications with Spring Boot. It discusses key features such as creating stand-alone Spring applications without separate web servers, automatic Spring configuration, and getting started quickly with one Java file and a build script. Pros include faster deployments and no need for web.xml files. Cons can include custom configuration challenges and incompatibility with some legacy Spring projects. The document also demonstrates sample code and references Spring Initializr for project setups.
This document describes how to configure Spring Security for authentication and authorization in a web application. It defines a WebSecurityConfig class that configures HTTP security with roles like OWNER and MANAGER for access control. It also defines a UserDetailsManager service for loading users and a User entity class implementing UserDetails. Tests are shown for security configuration, login, access control and more using Spring Security's test utilities.
1. The document discusses RESTful APIs and gRPC, comparing their characteristics and use cases.
2. RESTful APIs typically use HTTP and JSON to access resources via URLs while gRPC uses protocol buffers and HTTP/2 for efficient streaming and RPC.
3. gRPC is better suited for microservices and mobile apps due to its ability to handle streaming and performance, while REST is more widely used due to its simplicity and support in most languages.
Spring Batch is a framework for batch processing in Java. It allows developers to process large volumes of records by dividing the work into small chunks called steps. The framework includes components like job launcher, job repository, step, item reader, item processor and item writer to process a batch job. Jobs are composed of steps, and steps use readers, processors and writers to read, process and write data.
Event : Visual Studio Users Community Japan #1
Date : 2019/09/14
ソフトウェア/サービス開発において最も後回しにされるものの代表が「パフォーマンスの向上」です。C#/.NET の最大の武器は開発生産性ですが、C# 7.0 以降はパフォーマンス向上のための機能追加が多数行われています。いくつかのポイントを押さえることで実装時からより高速なコードを書くことができるようになります。
このドキュメントでは、そんなポイントとなる箇所をふんだんにお届けします。
This document discusses Spring Boot and how it provides automatic configuration for common web application functionalities like JPA, security, and Spring MVC. It also covers how Spring Boot uses starter dependencies to select libraries automatically and provides tools like the CLI and Spring Initializr. The document then demonstrates creating a basic Spring Boot application and discusses testing Spring Boot applications using techniques like mocking Spring MVC and integrating tests.
Building a Spring Boot Application - Ask the Audience!🎤 Hanno Embregts 🎸
This document provides an overview of building applications with Spring Boot. It discusses key features such as creating stand-alone Spring applications without separate web servers, automatic Spring configuration, and getting started quickly with one Java file and a build script. Pros include faster deployments and no need for web.xml files. Cons can include custom configuration challenges and incompatibility with some legacy Spring projects. The document also demonstrates sample code and references Spring Initializr for project setups.
Rasheed Amir presents on Spring Boot. He discusses how Spring Boot aims to help developers build production-grade Spring applications quickly with minimal configuration. It provides default functionality for tasks like embedding servers and externalizing configuration. Spring Boot favors convention over configuration and aims to get developers started quickly with a single focus. It also exposes auto-configuration for common Spring and related technologies so that applications can take advantage of them without needing to explicitly configure them.
Microservices with Java, Spring Boot and Spring CloudEberhard Wolff
Spring Boot makes creating small Java application easy - and also facilitates operations and deployment. But for Microservices need more: Because Microservices are a distributed systems issues like Service Discovery or Load Balancing must be solved. Spring Cloud adds those capabilities to Spring Boot using e.g. the Netflix stack. This talks covers Spring Boot and Spring Cloud and shows how these technologies can be used to create a complete Microservices environment.
Microservice With Spring Boot and Spring CloudEberhard Wolff
Spring Boot and Spring Cloud are an ideal foundation for creating Microservices based on Java. This presentation explains basic concepts of these libraries.
Grails 3.0先取り!? Spring Boot入門ハンズオン #jggug_bootToshiaki Maki
Spring Bootのハンズオン資料です。
----
Grailsの次期バージョン3.0でベースになることが予定されている、Spring界隈の新しいトレンド"Spring Boot"のハンズオンを通じて、Spring Bootのイメージを掴んでもらいたいと思います。内容は以下の通りです。
Spring Boot概要説明
Spring Bootを用いて簡単なアプリケーションを実際に作ってみる
(合計で約二時間弱)
Spring I/O 2018 でお話があった以下のセッションについて自分なりにまとめてみました。
- Flight of the Flux
https://speakerdeck.com/simonbasle/flight-of-the-flux
- Under the hood of Reactive Data Access
https://speakerdeck.com/mp911de/under-the-hood-of-reactive-data-access-1
- REST beyond the obvious
https://speakerdeck.com/olivergierke/rest-beyond-the-obvious-api-design-for-ever-evolving-systems
From Spring Boot 2.2 to Spring Boot 2.3 #jsugToshiaki Maki
Spring Boot 2.3 will include improvements to support for containers and Kubernetes, as well as updates for Spring Framework 5.3 including support for JDK 17 LTS and GraalVM native images. Other new features in Spring Boot 2.3 include enhancements to Spring Data and a target release date of April 2020. Spring Framework 5.3 will build upon features introduced in 5.x such as RSocket and coroutines.
The document discusses a meetup about integrating Concourse and Spinnaker. It covers why Spinnaker is useful for continuous delivery, specifically blue/green deployments, rollbacks, and automated canary analysis. It then discusses how Concourse and Spinnaker can be integrated using the Concourse Spinnaker resource to trigger Spinnaker pipelines from Concourse and vice versa. A demo is shown of building a Docker image, deploying it to Spinnaker, running tests with JMeter, and rolling back if tests fail.
Serverless with Spring Cloud Function, Knative and riff #SpringOneTour #s1tToshiaki Maki
This document summarizes a presentation about serverless computing using Spring Cloud Function, Knative, and riff. It discusses what serverless computing is, an overview of Spring Cloud Function for developing serverless applications, and how Knative and riff can be used as platforms to deploy serverless workloads on Kubernetes. Code examples are provided to demonstrate invoking functions via HTTP and messaging with Spring Cloud Function and deploying functions to Knative and riff.
Spring Boot Actuator 2.0 & Micrometer #jjug_ccc #ccc_a1Toshiaki Maki
Spring Boot Actuator 2.0 provides additional monitoring endpoints for Spring Boot applications running in production. Micrometer allows instrumenting Spring Boot applications without vendor lock-in by providing common metrics that can be exported to systems like Prometheus, Datadog, and Cloud Foundry Metrics. Key features include multi-dimensional metrics with tags instead of hierarchies, histograms for response time distributions, and client-side percentiles. Monitoring of Spring Boot applications can be done on Cloud Foundry by scraping the /actuator/prometheus endpoint across application instances behind a load balancer.
Spring Boot Actuator 2.0 has been refactored and now supports Micrometer for instrumentation and metrics collection. Micrometer allows instrumentation without vendor lock-in and supports many monitoring systems including Prometheus, Datadog, and Cloud Foundry Metrics. New features in Spring Boot Actuator 2.0 include support for Spring WebFlux, more secure configuration of endpoints, and histograms and percentiles for more detailed metrics. Micrometer provides a common API for instruments like timers, counters, and gauges and supports adding custom meters.
Open Service Broker APIとKubernetes Service Catalog #k8sjpToshiaki Maki
The document discusses the Open Service Broker API and Kubernetes Service Catalog. It describes how the Service Broker API allows developers to provision and bind to services outside of Kubernetes. It then explains how the Kubernetes Service Catalog implements the Service Broker API to provide services within Kubernetes using new resource types like ServiceInstance and ServiceBinding. The document provides examples of installing brokers, listing available services, and creating instances and bindings.
Spring Cloud Function & Project riff #jsugToshiaki Maki
This document discusses Spring Cloud Function and Project Riff. It provides an overview of serverless computing and functions-as-a-service (FaaS). It introduces Spring Cloud Function as a way to write functions in Spring Boot and deploy them to various FaaS providers. It also describes Project Riff, an open source FaaS platform that runs on Kubernetes and provides event-driven functions through containers and sidecars that connect functions to event brokers. It demonstrates packaging functions as containers and connecting them to brokers through sidecars to handle event streaming and scaling of functions.
Introduction to Spring WebFlux #jsug #sf_a1Toshiaki Maki
The document provides an introduction and overview of Spring WebFlux, a non-blocking web framework for Spring. It discusses the differences between blocking and non-blocking web stacks, and how Spring WebFlux uses reactive streams and programming. Code examples are provided showing how to build reactive controllers and streams in Spring WebFlux that support backpressure.
BOSH / CF Deployment in modern ways #cf_tokyoToshiaki Maki
1. The document discusses deploying BOSH and Cloud Foundry using the BOSH CLI v2. It covers the general BOSH deployment workflow, differences between BOSH CLI v1 and v2, maintaining manifest files using operation files, downloading BOSH releases, variable interpolation, and provisioning the BOSH director.
2. It also provides examples of deploying Concourse on a single VM without a BOSH director using the BOSH CLI create-env command and different infrastructure configurations.
Why PCF is the best platform for Spring BootToshiaki Maki
Pivotal Cloud Foundry (PCF) provides many out-of-the-box features for managing and operating Spring Boot apps, including a cloud profile, Spring Cloud Connectors, Spring Cloud Services, a Trace Exporter, Spring Actuator support in Apps Manager, and a Metrics Forwarder Service. These features simplify development and operations of microservices built with Spring technologies when deployed to PCF.
This document provides instructions for installing and configuring Zipkin, an open source distributed tracing system. It describes how to download Zipkin, configure it to store traces in MySQL or Elasticsearch, and receive traces from Kafka. It also covers enabling OAuth2 authentication and securing the Zipkin UI and API endpoints.
The document discusses various boilerplate patterns related to building microservices using the Spring Framework and Spring Cloud. It outlines patterns for application coordination, configuration, operations for the JVM, runtime platform provisioning, and microservice operations. It also introduces Spring Cloud projects like Config Server, Eureka, Ribbon, Hystrix, Stream, and Sleuth that can help implement these patterns to build cloud-native microservice architectures.
Spring Framework 5.0による Reactive Web Application #JavaDayTokyoToshiaki Maki
The document discusses reactive programming and the Spring Framework 5.0 release. It provides an overview of reactive programming concepts like asynchronous non-blocking applications. It also discusses Reactive Streams and libraries like Reactor. Finally, it covers new features in Spring Framework 5.0 like performance improvements, support for JDK 9, and the introduction of reactive APIs in Spring.
The document discusses various topics related to Spring Boot including Spring Data REST, CSRF protection, and Cloud Foundry integration. It provides code examples for exposing repositories as REST APIs with Spring Data REST, handling errors and exceptions, and securing applications with CSRF tokens. It also briefly mentions Spring Boot features like configuration properties and the Actuator.
The document discusses Kotlin support in Spring Framework 5. It covers how Kotlin can be used with Spring Boot and Spring's programming model through features like extension functions and reified type parameters. It provides code examples of using Kotlin idioms with Spring components like the application context, JdbcTemplate, and RestTemplate to make the code more concise and readable. It also briefly mentions new features in Spring Framework 5 like reactive support using Spring WebFlux and using router functions with Kotlin.
Event Driven Microservices with Spring Cloud Stream #jjug_ccc #ccc_ab3Toshiaki Maki
The document describes Spring Cloud Stream, an event-driven microservice framework built on Spring Boot and Spring Integration. It provides primitives for building message-driven microservices including persistent publish-subscribe messaging, consumer groups, and support for multiple message brokers like RabbitMQ and Kafka. Applications are developed as message sources, sinks and processors. Spring Cloud Stream handles mapping of applications to messaging infrastructure.
Managing your Docker image continuously with Concourse CIToshiaki Maki
This document discusses managing Docker images continuously using Concourse CI. It describes using a Docker image resource in a Concourse pipeline configuration file to build a custom Docker image. The pipeline pulls from a Git repository, builds the image using a Dockerfile, and pushes the new image to a registry on each run, ensuring the image is always up to date.
Data Microservices with Spring Cloud Stream, Task, and Data Flow #jsug #spri...Toshiaki Maki
The document discusses Spring Cloud Data Flow, which provides a framework for building data pipelines using microservices. It describes how Spring Cloud Data Flow orchestrates long-lived streaming applications using Spring Cloud Stream and short-lived batch processing applications using Spring Cloud Task. It also discusses how these applications can be deployed on modern platforms using deployment-specific Spring Cloud Deployers.
Short Lived Tasks in Cloud Foundry #cfdtokyoToshiaki Maki
The document discusses different types of tasks in Cloud Foundry including long-running process (LRP) tasks, app process staging tasks, and app tasks. It provides examples of using the cf v3-run-task command to run tasks such as database migrations, flyway migrations, and a custom task to output a greeting.
This is the presentation which I explain at the Japanese Java Users Conference Annual Technology Conference is called JJUG CCC 2025 Spring.
In this presentation, I introduced the development productivity using GitHub Copilot. And How to implement Enterprise AI Java application by using LangChain4j. Finally I introduced easy of use and install the SLM(Small Language Model) on your edge device by using Azure AI Foundry Local.
64. あとは所定の位置にSQLを書くだけ
spring.jpa.hibernate.ddl-auto: validate
CREATE TABLE PERSON (
id BIGINT GENERATED BY DEFAULT AS IDENTITY,
first_name varchar(255) not null,
last_name varchar(255) not null
);
!
insert into PERSON (first_name, last_name) values ('Dave', 'Syer');
現在適用されているSQLの
バージョンを確認して、必要
なSQLを自動で実行
DDLの実行はFlywayに任せ
るために、JPAの機能を抑制