Skip to content

Commit 07b12a6

Browse files
committed
Document that the colon needs to be escaped when typing "classpath:" in application.properties
1 parent a2e30b6 commit 07b12a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/main/asciidoc/databases-dev-services.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ Dev Services volumes can be mapped to the filesystem or the classpath:
150150
# Using a filesystem volume:
151151
quarkus.datasource.devservices.volumes."/path/from"=/container/to <1>
152152
# Using a classpath volume:
153-
quarkus.datasource.devservices.volumes."classpath:./file"=/container/to <2>
153+
quarkus.datasource.devservices.volumes."classpath\:./file"=/container/to <2>
154154
----
155155

156156
<1> The file or folder "/path/from" from the local machine will be accessible at "/container/to" in the container.
157157
<2> When using classpath volumes, the location has to start with "classpath:". The file or folder "./file" from the project's classpath will be accessible at "/container/to" in the container.
158158

159+
CAUTION: The colon character `:` needs to be escaped in `.properties` files as `\:`, or it will be interpreted as a key/value separator.
160+
159161
IMPORTANT: when using a classpath volume, the container will only be granted read permission. On the other hand, when using a filesystem volume, the container will be granted read and write permission.
160162

161163
=== Example of mapping volumes to persist the database data

0 commit comments

Comments
 (0)