核心内容摘要
时间上采样(Temporal Upscaling)底层原理——借用“前几帧的细节”,拼出更清晰的今天
SpringBoot web开发能力由SpringMVC提供。
一Web场景1创建项目?xml version
0 encodingUTF-8? project xmlnshttp://maven.apache.org/POM/
4.
0 xmlns:xsihttp://www.w
org/2001/XMLSchema-instance xsi:schemaLocationhttp://maven.apache.org/POM/
4.
0 https://maven.apache.org/xsd/maven-
4.
0.
xsd modelVersion
4.
0/modelVersion parent groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-parent/artifactId version
3.
10/version relativePath/ !-- lookup parent from repository -- /parent groupIdcom.dashu/groupId artifactIdboot
-web/artifactId version
0.
1-SNAPSHOT/version nameboot
-web/name descriptionboot
-web/description properties java.version21/java.version /properties dependencies dependency groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-web/artifactId /dependency dependency groupIdorg.projectlombok/groupId artifactIdlombok/artifactId optionaltrue/optional /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration annotationProcessorPaths path groupIdorg.projectlombok/groupId artifactIdlombok/artifactId /path /annotationProcessorPaths /configuration /plugin plugin groupIdorg.springframework.boot/groupId artifactIdspring-boot-maven-plugin/artifactId configuration excludes exclude groupIdorg.projectlombok/groupId artifactIdlombok/artifactId /exclude /excludes /configuration /plugin /plugins /build /project2自动装配第一步整合web场景dependency groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-web/artifactId /dependency第二步场景starter引入之后autoConfigure包自动引入第三步EnableAutoConfiguration注解会使用一个类import(AutoConfigurationImportSelector.class)批量导入各种场景组件第四步每一个自动配置类当中都绑定了配置属性文件WebMvcProperties.class第五步配置属性文件通过注解ConfigurationProperties(prefixspring.mvc)读取配置文件中的内容到前边配置类中1定制springMvc所有配置项是按照spring.mvc开头2web场景通用配置都在spring.web3文件上传配置spring.servlet.multipart4服务器相关配置server比如编码方式。
SpringBoot的web启动过程中做了大量的默认配置如果想要修改修改上述配置项即可。
3默认效果