You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,20 @@ Add the mailer service to the classpath by adding the following maven dependency
17
17
18
18
### Attachments
19
19
20
-
Attachments work out of the box. The library ships a default that stores attachment payloads in the
21
-
lib-owned table `email_service_attachment_payloads`. The table is created automatically the first time the default is
22
-
used, unless `aboutbits.emailservice.migrations.enabled` is set to `false`.
20
+
If you want to use attachments, you will have to define a bean implementing this interface: [AttachmentDataSource.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fspringboot%2Femailservice%2Flib%2FAttachmentDataSource.java)
21
+
This step is optional. Where the payloads are stored is a decision of the application: you can provide your own
22
+
implementation (e.g. S3), or register the ready-made `JdbcAttachmentDataSource` shipped with the library, which stores
23
+
payloads in the lib-owned table `email_service_attachment_payloads`:
23
24
24
-
If you want to store payloads somewhere else (e.g. S3), define your own bean implementing this
0 commit comments