我应该在下面的spring-boot H2数据源配置中进行哪些更改,以确保已启用XA ?
[ExifTool] ExifTool Version Number : 11.10
[System] File Name : A3-TEST_2_EXIF-RH-Copper-92.4x210.8-R.jpg
[System] Directory : /Users/vinodsudharshan/Desktop
[System] File Size : 36 MB
[System] File Modification Date/Time : 2018:08:27 21:55:25+02:00
[System] File Access Date/Time : 2018:08:31 16:59:05+02:00
[System] File Inode Change Date/Time : 2018:08:27 22:56:37+02:00
[System] File Permissions : rw-r--r--
[File] File Type : JPEG
[File] File Type Extension : jpg
[File] MIME Type : image/jpeg
[File] Exif Byte Order : Big-endian (Motorola, MM)
[File] Image Width : 6548
[File] Image Height : 14938
[File] Encoding Process : Baseline DCT, Huffman coding
[File] Bits Per Sample : 8
[File] Color Components : 4
[Adobe] DCT Encode Version : 100
[Adobe] APP14 Flags 0 : (none)
[Adobe] APP14 Flags 1 : (none)
[Adobe] Color Transform : Unknown (RGB or CMYK)
[IFD0] Image Width : 6130
[IFD0] Image Height : 8400
[IFD0] Bits Per Sample : 8 8 8
[IFD0] Photometric Interpretation : RGB
[IFD0] Orientation : Horizontal (normal)
[IFD0] Samples Per Pixel : 3
[IFD0] X Resolution : 180
[IFD0] Y Resolution : 180
[IFD0] Resolution Unit : inches
[IFD0] Software : Adobe Photoshop CS5.1 Macintosh
[IFD0] Modify Date : 2018:07:11 17:42:24
[ExifIFD] Exif Version : 0221
[ExifIFD] Color Space : Uncalibrated
[ExifIFD] Exif Image Width : 5669
[ExifIFD] Exif Image Height : 14173
[IFD1] Compression : JPEG (old-style)
[IFD1] X Resolution : 180
[IFD1] Y Resolution : 180
[IFD1] Resolution Unit : inches
[IFD1] Thumbnail Offset : 404
[IFD1] Thumbnail Length : 2076
[IFD1] Thumbnail Image : (Binary data 2076 bytes, use -b option to extract)
[ICC-header] Profile CMM Type : Adobe Systems Inc.
[ICC-header] Profile Version : 2.1.0
[ICC-header] Profile Class : Output Device Profile
[ICC-header] Color Space Data : CMYK
[ICC-header] Profile Connection Space : Lab
[ICC-header] Profile Date Time : 2000:07:26 05:41:53
[ICC-header] Profile File Signature : acsp
[ICC-header] Primary Platform : Apple Computer Inc.
[ICC-header] CMM Flags : Not Embedded, Independent
[ICC-header] Device Manufacturer : Adobe Systems Inc.
[ICC-header] Device Model :
[ICC-header] Device Attributes : Reflective, Glossy, Positive, Color
[ICC-header] Rendering Intent : Media-Relative Colorimetric
[ICC-header] Connection Space Illuminant : 0.9642 1 0.82491
[ICC-header] Profile Creator : Adobe Systems Inc.
[ICC-header] Profile ID : 0
[ICC_Profile] Profile Description : U.S. Web Coated (SWOP) v2
[ICC_Profile] Profile Copyright : Copyright 2000 Adobe Systems, Inc.
[ICC_Profile] Media White Point : 0.7084 0.73595 0.57104
[ICC_Profile] A To B0 : (Binary data 41478 bytes, use -b option to extract)
[ICC_Profile] A To B2 : (Binary data 41478 bytes, use -b option to extract)
[ICC_Profile] A To B1 : (Binary data 41478 bytes, use -b option to extract)
[ICC_Profile] B To A0 : (Binary data 145588 bytes, use -b option to extract)
[ICC_Profile] B To A1 : (Binary data 145588 bytes, use -b option to extract)
[ICC_Profile] B To A2 : (Binary data 145588 bytes, use -b option to extract)
[ICC_Profile] Gamut : (Binary data 37009 bytes, use -b option to extract)
[Composite] Image Size : 6548x14938
[Composite] Megapixels : 97.8
参考:http://www.h2database.com/javadoc/org/h2/jdbcx/JdbcDataSource.html
答案 0 :(得分:1)
将org.h2.jdbcx.JdbcDataSource.class添加为类型帮助。
public DataSource h2() {
String url = "jdbc:h2:mem:mydatabase;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE";
return DataSourceBuilder.create()
.url(url)
.driverClassName("org.h2.Driver")
.type(org.h2.jdbcx.JdbcDataSource.class) //xa datasource
.build();
}