簡體   English   中英

如何使用netty創建rtsp流服務器

[英]how to create rtsp stream server using netty

請幫助我創建rtsp服務器。 如果有任何可行的例子..我嘗試netty的例子。

github鏈接

但顯示以下錯誤,

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.darkmi.server.config.ServerConfig; nested exception is java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:267)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:203)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:622)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73)
    at com.darkmi.server.Main.main(Main.java:14)
Caused by: java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
    at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
    at org.springframework.core.io.support.ResourcePropertySource.loadPropertiesForResource(ResourcePropertySource.java:101)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:43)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:52)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:82)
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:193)
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:149)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:135)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:260)

您需要在Eclipse項目中創建一個resources文件夾。 然后將該文件夾添加到您的項目源中。 application.properties文件(包含RTSP服務器的IP /端口)應該位於此處。

它應該看起來像這樣

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM