2019年12月25日

SpringBoot学习(六)SQL数据库和NOSQL数据库

摘要: 一、使用SQL数据库 Spring框架为使用SQL数据库提供了广泛的支持,从使用JdbcTemplate的直接JDBC访问到完成Hibernate等“对象关系映射”技术。Spring Data提供了附加的功能级别:直接从接口创建存储库实现,并使用约定从方法名生成查询。 1.配置数据源 Java的ja 阅读全文

posted @ 2019-12-25 16:37 木西-Muxy 阅读(985) 评论(0) 推荐(0)

解决getWriter() has already been called for this response异常(转)

摘要: 近期,查看公司应用日志系统error错误信息时,发现了大量的nested exception is java.lang.IllegalStateException: getWriter() has already been called for this response异常。这个错误以前见到过,也 阅读全文

posted @ 2019-12-25 09:29 木西-Muxy 阅读(17586) 评论(0) 推荐(0)

Http请求中Content-Type讲解以及在Spring MVC注解中produce和consumes配置详解(转)

摘要: 引言: 在Http请求中,我们每天都在使用Content-type来指定不同格式的请求信息,但是却很少有人去全面了解content-type中允许的值有多少,这里将讲解Content-Type的可用值,以及在spring MVC中如何使用它们来映射请求信息。 1. Content-Type Medi 阅读全文

posted @ 2019-12-25 09:22 木西-Muxy 阅读(3410) 评论(0) 推荐(0)

导航