Parameter 0 of method orderSqlSessionFactory in com.config.MultipleDBConfig required a single bean, but 2 were found: - orderDataSource: defined by method 'orderDataSource' in class path resource [com/config/MultipleDBConfig.class] - crmDataSource: d…
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-07-16 14:55:18.498 ERROR 8880 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED T…
一,什么是seata? Seata:Simpe Extensible Autonomous Transcaction Architecture, 是阿里中间件开源的分布式事务解决方案. 前身是阿里的Fescar   官方站: http://seata.io/zh-cn/  官方代码地址: https://github.com/seata/seata  官方文档站: http://seata.io/zh-cn/docs/overview/what-is-seata.html 各版本的release…
一,为什么要使用druid数据源? 1,druid的优点 Druid是阿里巴巴开发的号称为监控而生的数据库连接池 它的优点包括: 可以监控数据库访问性能 SQL执行日志 SQL防火墙 但spring boot和shardingjdbc默认使用的数据库连接池是 HikariCP 如果要在shardingsphere中使用druid,需要在项目中整合后才能生效 2,druid的官方代码站: https://github.com/alibaba/druid/ 说明:刘宏缔的架构森林是一个专注架构的博客…
工具及背景: IntelliJ IDEA 2016.1.3 Ultimate.spring boot, maven项目,利用mybatis 注解的方式查询mysql. 业务逻辑关系:controller --> Service接口 ----> serverImpl --->Dao -->DaoImpl ---> mapper -->db 问题:mapper提示Could not autowire. No beans of … type found?如图: 其中Produ…
一,filter/interceptor/aop在获取参数上有什么区别? 1,filter可以修改HttpServletRequest的参数(doFilter方法的功能), interceptor/aop都没有这个功能 但它不提供到被过滤的方法的访问 注意区分请求request的方法 2, interceptor能得到所拦截的方法名和参数名, 不能得到参数值, interceptor的postHandle方法能得到ModelAndView参数, 用来处理模板的公共参数,把页面的公共内容传递给模板…
[视频&交流平台] àSpringBoot视频 http://study.163.com/course/introduction.htm?courseId=1004329008&utm_campaign=commission&utm_source=400000000155061&utm_medium=share à SpringCloud视频 http://study.163.com/course/introduction.htm?courseId=1004638001&a…
[size=large]头一篇博文说了整合了spring boot和mybatis大家都可以对后台数据进行操作但是如何才能进行高效的操作数据库节省代码,下面来一起谈论哈mybatis的通用mapper. 第一章:pom文件解释 maven的pom文件里面需要引进什么依赖呢? <dependency> <!--工具接口类用来实体mapper继承 --> <groupId>tk.mybatis</groupId> <artifactId>mapper…
参考https://www.cnblogs.com/wlovet/p/8317282.html…
Spring boot对于我来说是一个刚接触的新东西,学习过程中,发现这东西还是很容易上手的,Spring boot没配置时会默认使用Spring data jpa,这东西可以说一个极简洁的工具,可是我还是比较喜欢用mybatis,工具是没有最好的,只有这合适自己的. 说到mybatis,最近有一个很好用的工具--------mybatis-Plus(官网),现在更新的版本是2.1.2,这里使用的也是这个版本.我比较喜欢的功能是代码生成器,条件构造器,这样就可以更容易的去开发了. mybatis…