×
思维导图备注
Micronaut v2.2.0 Documentation
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
8.2.1 Consul Support
来源:Micronaut
浏览
218
扫码
分享
2021-02-09 09:31:42
8.2.1 Consul Support
8.2.1 Consul Support
Check
Micronaut Consul documentation
.
当前内容版权归
Micronaut
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Micronaut
.
上一篇:
下一篇:
1 Introduction
1.1 What’s New?
1.2 Upgrading to Micronaut 2.x
2 Quick Start
2.1 Build/Install the CLI
2.2 Creating a Server Application
2.3 Setting up an IDE
2.3.1 IntelliJ IDEA
2.3.2 Eclipse
2.3.3 Visual Studio Code
2.4 Creating a Client
2.5 Deploying the Application
3 Inversion of Control
3.1 Defining Beans
3.2 How Does it Work?
3.3 The BeanContext
3.4 Injectable Container Types
3.5 Bean Qualifiers
Qualifying By Name
Qualifying By Annotation
Primary and Secondary Beans
3.6 Scopes
3.6.1 Built-In Scopes
3.6.1.1 Eager Initialization of Singletons
3.6.2 Refreshable Scope
3.6.3 Scopes on Meta Annotations
3.7 Bean Factories
3.8 Conditional Beans
Configuration Requirements
Debugging Conditional Beans
3.9 Bean Replacement
3.10 Bean Configurations
3.11 Life-Cycle Methods
When The Context Starts
When The Context Closes
3.12 Context Events
3.13 Bean Events
3.14 Bean Introspection
3.15 Bean Validation
3.16 Bean Annotation Metadata
3.17 Micronaut Beans And Spring
3.18 Android Support
Configuring Your Android Build
Enabling Dependency Injection
4 Application Configuration
4.1 The Environment
Environment Priority
Disabling Environment Detection
Default Environment
4.2 Externalized Configuration with PropertySources
4.3 Configuration Injection
4.4 Configuration Properties
Includes / Excludes
Property Type Conversion
Configuration Builder
MapFormat
4.5 Custom Type Converters
4.6 Using @EachProperty to Drive Configuration
4.7 Using @EachBean to Drive Configuration
4.8 Immutable Configuration
4.9 JMX Support
5 Aspect Oriented Programming
5.1 Around Advice
Writing Around Advice
Customizing Proxy Generation
AOP Advice on @Factory Beans
5.2 Introduction Advice
5.3 Method Adapter Advice
5.4 Validation Advice
5.5 Cache Advice
Cache Annotations
Configuring Caches
Dynamic Cache Creation
Other Cache Implementations
5.6 Retry Advice
Simple Retry
Reactive Retry
Circuit Breaker
Bean Creation Retry
Retry Events
5.7 Scheduled Tasks
Using the @Scheduled Annotation
Programmatically Scheduling Tasks
Configuring Scheduled Tasks with Annotation Metadata
Configuring the Scheduled Task Thread Pool
Handling Exceptions
5.8 Bridging Spring AOP
6 The HTTP Server
6.1 Running the Embedded Server
6.2 Running Server on a Specific Port
6.3 HTTP Routing
URI Paths
URI Path Variables
URI Reserved Character Matching
Routing Annotations
Multiple URIs
Building Routes Programmatically
Route Compile Time Validation
Routing non-standard HTTP methods
6.4 Simple Request Binding
Binding Annotations
Binding from Multiple Query values
Binding from Multiple Bindable values
Bindable Types
Type Based Binding Parameters
Variables resolution
6.5 Host Resolution
6.6 Client IP Address
6.7 The HttpRequest and HttpResponse
6.8 Response Status
6.9 Response Content-Type
6.10 Accepted Request Content-Type
6.11 Reactive HTTP Request Processing
6.11.1 Using the @Body Annotation
6.11.2 Reactive Responses
6.12 JSON Binding with Jackson
Binding using Reactive Frameworks
Binding Using CompletableFuture
Binding using POJOs
Jackson Configuration
6.13 Data Validation
6.14 Serving Static Resources
6.15 Error Handling
Status Handlers
Local Error Handling
Global Error Handling
ExceptionHandler
6.16 API Versioning
6.17 Handling Form Data
6.18 Writing Response Data
6.19 File Uploads
Route Arguments
Multiple Uploads
Whole Body Binding
6.20 File Transfers
Sending File Objects
Sending an InputStream
Cache Configuration
6.21 HTTP Filters
Writing a Filter
6.22 HTTP Sessions
Enabling Sessions
Configuring Session Resolution
Working with Sessions
Session Clients
Using @SessionValue
Session Events
6.23 Server Sent Events
6.24 WebSocket Support
6.24.1 Using @ServerWebSocket
6.24.2 Using @ClientWebSocket
6.25 HTTP/2 Support
6.26 Server Events
6.27 Configuring the HTTP Server
6.27.1 Configuring Server Thread Pools
6.27.2 Configuring the Netty Pipeline
6.27.3 Configuring CORS
Allowed Origins
Allowed Methods
Allowed Headers
Exposed Headers
Allow Credentials
Max Age
Multiple Header Values
6.27.4 Securing the Server with HTTPS
Using a valid x509 certificate
Using Java Keystore (JKS)
6.27.5 Enabling HTTP and HTTPS
6.27.6 Enabling Access Logger
6.28 Server Side View Rendering
6.29 OpenAPI / Swagger Support
6.30 GraphQL Support
7 The HTTP Client
7.1 Using the Low-Level HTTP Client
7.1.1 Sending your first HTTP request
7.1.2 Posting a Request Body
Sending JSON
Using a URI Template
Sending Form Data
7.1.3 Multipart Client Uploads
7.1.4 Streaming JSON over HTTP
7.1.5 Configuring HTTP clients
7.1.6 Error Responses
7.1.7 Bind Errors
7.2 Proxying Requests with ProxyHttpClient
7.3 Declarative HTTP Clients with @Client
7.3.1 Customizing Parameter Binding
7.3.2 Streaming with @Client
7.3.3 Error Responses
7.3.4 Customizing Request Headers
Populating Headers Using Configuration
Populating Headers using an Client Filter
7.3.5 Customizing Jackson Settings
7.3.6 Retry and Circuit Breaker
7.3.7 Client Fallbacks
7.3.8 Netflix Hystrix Support
Using the @HystrixCommand Annotation
Enabling Hystrix Stream & Dashboard
7.4 HTTP Client Filters
7.5 HTTP Client Sample
8 Cloud Native Features
8.1 Cloud Configuration
Using Cloud Instance Metadata
8.1.1 Distributed Configuration
8.1.2 HashiCorp Consul Support
Starting Consul
Enabling Distributed Configuration with Consul
Storing Configuration as Key/Value Pairs
Storing Configuration in YAML, JSON etc.
Storing Configuration as File References
8.1.3 HashiCorp Vault Support
8.1.4 Spring Cloud Config Support
8.1.5 AWS Parameter Store Support
8.1.6 Oracle Cloud Vault Support
8.2 Service Discovery
8.2.1 Consul Support
8.2.2 Eureka Support
8.2.3 Kubernetes Support
8.2.4 AWS Route 53 Support
8.2.5 Manual Service Discovery Configuration
8.3 Client Side Load Balancing
8.3.1 Netflix Ribbon Support
8.4 Distributed Tracing
Tracing Annotations
Tracing Beans
8.4.1 Tracing with Zipkin
Running Zipkin
Sending Traces to Zipkin
Customizing the Zipkin Sender
Zipkin Configuration
8.4.2 Tracing with Jaeger
Running Jaeger
Sending Traces to Jaeger
Jaeger Configuration
9 Serverless Functions
9.1 AWS Lambda
9.2 Google Cloud Function
9.3 Google Cloud Run
9.4 Azure Function
10 Message-Driven Microservices
10.1 Kafka Support
10.2 RabbitMQ Support
10.3 Nats.io Support
11 Standalone Command Line Applications
11.1 Picocli Support
12 Configurations
12.1 Configurations for Reactive Programming
12.1.1 RxJava 3 Support
12.1.2 Reactor Support
12.1.3 RxJava 1 Support
12.2 Configurations for Data Access
12.2.1 Configuring a SQL Data Source
Configuring a JDBC DataSource
12.2.2 Configuring Hibernate
12.2.3 Configuring MongoDB
12.2.4 Configuring Neo4j
12.2.5 Configuring Postgres
Configuring the Reactive Postgres Client
12.2.6 Configuring Redis
Configuring Lettuce
12.2.7 Configuring Cassandra
12.2.8 Configuring Liquibase
12.2.9 Configuring Flyway
13 Language Support
13.1 Micronaut for Java
13.1.1 Using Micronaut with Java 9+
13.1.2 Incremental Annotation Processing with Gradle
13.1.3 Using Project Lombok
13.1.4 Configuring an IDE
13.1.5 Retaining Parameter Names
13.2 Micronaut for Groovy
Groovy Specific Modules
Groovy Support in the CLI
Programmatic Routes with GroovyRouterBuilder
Using GORM in a Groovy application
Serverless Functions with Groovy
13.3 Micronaut for Kotlin
13.3.1 Kotlin, Kapt and IntelliJ
13.3.2 Incremental Annotation Processing with Gradle and Kapt
13.3.3 Kotlin and AOP Advice
13.3.4 Kotlin and Retaining Parameter Names
13.3.5 Coroutines Support
13.4 Micronaut for GraalVM
13.4.1 Microservices as GraalVM native images
13.4.2 GraalVM and Micronaut FAQ
14 Management & Monitoring
14.1 Creating Endpoints
14.1.1 The Endpoint Annotation
Example of custom Endpoint
14.1.2 Endpoint Methods
Read Methods
Write Methods
Delete Methods
14.1.3 Endpoint Sensitivity
14.1.4 Endpoint Configuration
14.2 Built-In Endpoints
14.2.1 The Beans Endpoint
Configuration
Customization
14.2.2 The Info Endpoint
Configuration
Customization
Provided Info Sources
14.2.3 The Health Endpoint
Configuration
Customization
Provided Indicators
14.2.4 The Metrics Endpoint
14.2.5 The Refresh Endpoint
Configuration
14.2.6 The Routes Endpoint
Configuration
Customization
14.2.7 The Loggers Endpoint
Configuration
Customization
14.2.8 The Caches Endpoint
14.2.9 The Server Stop Endpoint
Configuration
14.2.10 The Environment Endpoint
Configuration
Getting information about the environment
Getting information about a particular PropertySource
15 Security
16 Multi-Tenancy
16.1 Multi-Tenancy GORM
17 Micronaut CLI
Interactive Mode
Help and Info
17.1 Creating a Project
Create Command Flags
Create-Cli-App
Create Function App
Contribute
17.1.1 Comparing Versions
17.2 Features
17.3 Commands
Base Commands
HTTP-Related Commands
CLI Project Commands
17.4 Reloading
17.4.1 Automatic Restart
17.4.2 JRebel
Install/configure JRebel Agent
17.4.3 Recompiling with Gradle
17.4.4 Recompiling with an IDE
17.5 Proxy Configuration
18 Internationalization
19 Appendices
19.1 Frequently Asked Questions (FAQ)
19.2 Using Snapshots
19.3 Common Problems
19.4 Breaking Changes
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度