Solon Integration Guide
# Solon Integration Guide
The integration and usage of Solon are quite similar to those of Spring Boot, with the main differences being in the annotations and configurations.
# Adding Dependencies
<dependency>
<groupId>org.dromara.easy-es</groupId>
<artifactId>easy-es-solon-plugin</artifactId>
<!-- Choose the latest supported version, must be greater than or equal to 2.1.0 -->
<version>2.1.0</version>
</dependency>
1
2
3
4
5
6
2
3
4
5
6
✨Latest Version
Version: (opens new window)
# Configure app.yml as Needed
easy-es:
address: 127.0.0.1:9200
keep-alive-millis: 18000
global-config:
process-index-mode: manual
async-process-index-blocking: true
print-dsl: true
db-config:
map-underscore-to-camel-case: true
id-type: customize
field-strategy: not_empty
refresh-policy: immediate
enable-track-total-hits: true
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# Usage
Use the @Inject annotation to directly inject the Mapper where needed. The usage is the same as in Spring Boot, and the same applies to other aspects.
Help us improve this document (opens new window)
Last update: 2025/02/05