数据库使用MySQL,字段类型MEDIUMBLOB,连接配置为: spring.datasource.url=jdbc:mysql://localhost:3306/mydatabse?useUnicode=true&characterEncoding=utf-8
映射框架使用Spring JPA,对应的Java类型是String;
数据库中的数据中含特殊字符,如:·Line of Credit and Security Agreement
当请求来自本地,对应映射到的String是:·Line of Credit and Security Agreement
当请求来自AWS SQS时,对应映射到的String是:·Line of Credit and Security Agreement(多了个Â)
另外,当数据库的连接配置改为 spring.datasource.url=jdbc:mysql://localhost:3306/mydatabse时,两种情况映射到的String是:·Line of Credit and Security Agreement
请问:产生该问题的原因是什么,另如果在不改变数据库连接配置的情况下,怎样让两种方式映射到的String一致,谢谢!