Component Scan is important concept when we want to create Bean. Currently we know what, for the class, we want to create Bean from it, we need to add @Component. @Component @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public class ComponentPerson…
问题描述: storm版本:1.2.2,kafka版本:2.11.   在使用storm去消费kafka中的数据时,发生了如下错误. [root@node01 jars]# /opt/storm-1.2.2/bin/storm jar MyProject-1.0-SNAPSHOT-jar-with-dependencies.jar com.suhaha.storm.storm122_kafka211_demo02.KafkaTopoDemo stormkafka SLF4J: Class pat…
一.HBase介绍 1.基本概念 HBase是一种Hadoop数据库,经常被描述为一种稀疏的,分布式的,持久化的,多维有序映射,它基于行键.列键和时间戳建立索引,是一个可以随机访问的存储和检索数据的平台.HBase不限制存储的数据的种类,允许动态的.灵活的数据模型,不用SQL语言,也不强调数据之间的关系.HBase被设计成在一个服务器集群上运行,可以相应地横向扩展. 2.HBase使用场景和成功案例 互联网搜索问题:爬虫收集网页,存储到BigTable里,MapReduce计算作业扫描全表生成搜…
    公司项目配置的Spring项目的包扫描有点问题,出现了一个被Spring容器管理的Bean被创建了2次的现象.在此记录下解决的过程,方便后续查阅. 改动前: 容器启动监听器中会扫描全部包,创建实例  SpringMVC配置文件也会扫描全部包,创建实例 产生的问题:加了注解的类的实例都创建了2个 改动后: 容器启动监听器里面负责非Controller层bean的创建 SpingMVC配置文件里只负责Controller层bean的创建   参考链接: (1)https://blog.csd…
异常信息: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 55; schema_reference.4: 无法读取方案文档 'http://www.springframework.org/schema/context/spring-context-4.3.18.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文 将地址改为 http://www.springframework.org/schema/c…
storm每一个bolt在emit之后需要把数据传递到下一个bolt,所以declareOUtputFields 一定要写 默认的情况下不用加streamId,如果加了streamId,后面的bolt在使用shuffleGrouping时一定要写上steamId @Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { // outputFieldsDeclarer.declare…
MyBatis从入门到精通(第9章):Spring集成MyBatis(上) Spring是一个为了解决企业级Web应用开发过程中面临的复杂性,而被创建的一个非常流行的轻量级框架. mybatis-spring  可以帮助我们将MyBatis代码无缝整合到Spring中.使用这个类库中的类,Spring将会加载必要的MyBatis工厂类和Session类. MyBatis Spring Adapter项目地址为:  https://github.com/mybatis/spring master…
目录 一.Spring起步 学习路线图 Spring的基础知识 什么是Spring Spring框架核心模块 SpringBoot 第一个Spring应用DEMO 编写自己的第一个SpringMVC例子 尝试使用Spring Boot DevTools Spring起步小结 二.基于SpringMVC开发web应用 创建数据模型 创建业务逻辑 创建控制器 设计视图模板 运行Web应用 表单校验 展现校验错误 基于SpringMVC开发web应用小结 三.实现数据持久化 数据库 建立用户信息登记表…
在SpringMVC项目中我们一般会引入applicationContext.xml和dispatcher-servlet.xml两个配置文件,这两个配置文件具体的区别是什么呢? Spring 官方文档介绍如下: Spring lets you define multiple contexts in a parent-child hierarchy. The applicationContext.xml defines the beans for the "root webapp context…
1. Spring boot 简介 1.1 spring boot的三大特性 组件自动装配:Web mvc, Web Flux,JDBC等 激活:@EnableAutoConfiguration 配置:/META-INF/spring.factories 实现:XXXAutoConfiguration 嵌入式web容器:Tomcat.Jetty以及underTow 生产准备特性 2.2. 传统Servlet Servlet组件:Servlet.Filter.Listener Servlet注册:…