Add hack for Atom asciidoc syntax highlighting bug

https://github.com/atom/language-java/issues/88
This commit is contained in:
Gary Russell
2018-06-19 14:52:44 -04:00
parent 32030c3233
commit bf10821d32

View File

@@ -235,7 +235,7 @@ public MessageHandler jdbcMessageHandler(DataSource dataSource) {
"INSERT INTO imagedb (image_name, content, description) VALUES (?, ?, ?)");
jdbcMessageHandler.setPreparedStatementSetter((ps, m) -> {
ps.setString(1, m.getHeaders().get(FileHeaders.FILENAME));
try (FileInputStream inputStream = new FileInputStream((File) m.getPayload())) {
try (FileInputStream inputStream = new FileInputStream((File) m.getPayload()); ) {
ps.setBlob(2, inputStream);
}
catch (Exception e) {