• 大小: 648KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: 其他
  • 标签: netty  http  file  

资源简介

直接打开代码中的HttpFileServer的main函数即可查看效果和调试,调试一边你便了解原理了。

资源截图

代码片段和文件信息

package personal.crixusshen.tomcat;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import personal.crixusshen.tomcat.service.HelloWorldService;

/**
 * ProductName:NettyTest
 * Date:2015/10/4
 * Author:crixusshen
 * Coding is also a art !
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class SampleSimpleApplication implements CommandLineRunner {

    @Autowired
    private HelloWorldService helloWorldService;

    @Override
    public void run(String... strings) throws Exception {
        System.out.println(this.helloWorldService.getHelloMessage());
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(SampleSimpleApplication.class args);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          9  2015-10-03 11:11  NettyTest\.idea\.name

     文件       1217  2015-10-03 11:12  NettyTest\.idea\compiler.xml

     文件         76  2015-10-03 11:11  NettyTest\.idea\copyright\profiles_settings.xml

     文件        233  2015-10-03 11:12  NettyTest\.idea\encodings.xml

     文件        241  2015-10-04 16:20  NettyTest\.idea\inspectionProfiles\profiles_settings.xml

     文件        891  2015-10-04 16:20  NettyTest\.idea\inspectionProfiles\Project_Default.xml

     文件        195  2015-10-04 11:26  NettyTest\.idea\junitgenerator-prj-settings.xml

     文件        514  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__aopalliance_aopalliance_1_0.xml

     文件        568  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_2.xml

     文件        547  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_2.xml

     文件        574  2015-10-04 20:40  NettyTest\.idea\libraries\Maven__com_google_protobuf_protobuf_java_2_5_0.xml

     文件        523  2015-10-04 10:30  NettyTest\.idea\libraries\Maven__io_netty_netty_3_10_4_Final.xml

     文件        551  2015-10-04 10:33  NettyTest\.idea\libraries\Maven__io_netty_netty_all_3_10_4_Final.xml

     文件        551  2015-10-04 10:40  NettyTest\.idea\libraries\Maven__io_netty_netty_all_4_0_32_Final.xml

     文件        551  2015-10-04 11:39  NettyTest\.idea\libraries\Maven__io_netty_netty_all_5_0_0_Alpha2.xml

     文件        455  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__junit_junit_4_11.xml

     文件        625  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_7_0_52.xml

     文件        611  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_el_7_0_52.xml

     文件        681  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_logging_juli_7_0_52.xml

     文件        532  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_hamcrest_hamcrest_core_1_3.xml

     文件        553  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_hamcrest_hamcrest_library_1_3.xml

     文件        535  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_mockito_mockito_core_1_9_5.xml

     文件        508  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_objenesis_objenesis_1_0.xml

     文件        541  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_slf4j_jcl_over_slf4j_1_7_7.xml

     文件        527  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_slf4j_jul_to_slf4j_1_7_7.xml

     文件        555  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_slf4j_log4j_over_slf4j_1_7_7.xml

     文件        506  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_slf4j_slf4j_api_1_7_7.xml

     文件        636  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_springframework_boot_spring_boot_1_0_2_RELEASE.xml

     文件        734  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_springframework_boot_spring_boot_autoconfigure_1_0_2_RELEASE.xml

     文件        692  2015-10-03 11:12  NettyTest\.idea\libraries\Maven__org_springframework_boot_spring_boot_starter_1_0_2_RELEASE.xml

............此处省略196个文件信息

评论

共有 条评论