rg.springframework<
来源:互联网 发布:于谦 知乎 编辑:程序博客网 时间:2024/05/17 01:38
鉴于red5很好用,暂定red5作为摄像头的流媒体服务器(rtmp),先做出来玩玩试试。
这样一来,一个摄像头对应一个流媒体服务器,不知道还需不需要一个反向proxy server.
这样一来,架构就变了:
android端播放的时候不需要通过主服务器,直接连到流媒体服务器中就行了,好像主服务器就没必要存在了?我觉得还是得要,因为安全问题,因为酷。
因此还需要做一个主服务器来管理各个流媒体服务器,并作为android的服务端。
服务器继续用Java来做。
一、数据库方面:
1、考虑到数据量与数据之间关系并不多,就一个地址,将来能增加的估计也就用户信息
2、考虑到用传统的数据库mysql、MariaDB或者sqlite等有点太浪费也麻烦
因此选择了不去做一个数据库,而是将内存进行到底,用一个文件来备份数据。
1、既然用内存作为持久层,那就用对象的形式。
2、考虑到要能备份到文件里,因此选用了json作为存储的数据类型。
3、考虑到内存大小,选用了单例来创造数据对象。
二、后台整体分包:
1、dbo 我自创的类型,database object 数据库对象,命名有点牵强。
2、dao 持久层
3、common 一些通用的方法或工具
4、service 逻辑层
5、controller 表示层控制器
6、listener tomcat启动时要运行的一些东西(例如开启camera等)
Spring配置(很基本的配置)
1、pom.xml内容
1.7
UTF-8
UTF-8
3.1.4.RELEASE
1.7.3
1.6.6
junit
junit
3.8.1
test
org.springframework
spring-test
3.1.4.RELEASE
org.codehaus.jackson
jackson-mapper-asl
1.9.12
org.springframework
spring-context
${org.springframework-version}
- rg.springframework<
- rg.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
- webbug rg.springframework.dao.DataIntegrityViolationException
- rg.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unab
- rg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from
- [SpringMVC]unresolved dependency rg.springframework.boot:spring-boot-starter-web:1.2.3.RELEASE
- spring data redis rg.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lan
- RG-S2928G-E开网页
- 锐捷RG-WALL60防火墙配置详解
- float到rg通道的编解码
- 微软新研制的操作系统“视窗RG”露面
- Zoner Photo Studio v15.0.1.2 Professional-rG
- Struts2配置 ClassNotFoundException: rg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilt
- rg.hibernate.ObjectNotFoundException: No row with the given identifier exists
- 锐捷RG-12010交换机VSU虚拟化配置
- 锐捷RG-AP220-SE无线接入点设置
- 啦啦啦——终极模拟 fl+rg , tab+vp , pull+""
- 啦啦啦——终极模拟 fl+rg , tab+vp , pull+""
- mongoskin查询语句的写法
- 2、storage主流程
- Qt编译错误GL/gl.h: No such file or directory
- ORACLE 11G 32位 win7 完美安装图解
- At the begining for VBA
- rg.springframework<
- 3.编写一个截取字符串的函数
- org.springframework
- NET Framework
- FileUpload包下放了三个类:
- SQL语句中位与选择项的使用
- c++ 删除整形数组中重复的数字
- ARM Linux 3.x的设备树(Device Tree)
- Hibernate的merge方法-illegally attempted to associate a proxy with two open Sessions