Spring
哉菌
这个作者很懒,什么都没留下…
展开
-
框架学习随笔6-SpringBoot JDBC
1原创 2020-10-25 22:04:55 · 80 阅读 · 0 评论 -
框架学习随笔5-SpringBoot web相关
对静态资源的映射规则@ConfigurationProperties(prefix = "spring.resources", ignoreUnknownFields = false)public class ResourceProperties implements ResourceLoaderAware { //设置和静态资源有关的参数所有 /webjars/** ,以jar包的方式引入静态资源,都去 classpath:/META-INF/resources/webjars/ 找资源。原创 2020-10-18 18:05:06 · 89 阅读 · 0 评论 -
框架学习随笔4-SpringBoot 日志
SLF4J每一种日志类型的实现都有自己的配置文件,使用SLF4J后,日志会统一为一个日志实现框架。原创 2020-09-20 20:05:18 · 72 阅读 · 0 评论 -
框架学习随笔3-SpringBoot profile环境配置
不同的环境下,会有不同的配置。applcation.properties下可以使用下面的激活环境配置:spring.profiles.active = dev一般默认,dev为开发环境、test为测试环境、prod为生产环境。可以将对应的配置文件命名为application-dev.properties、application-prod.properties、application-test.properties。profile.name=devprofile.name=testpr原创 2020-09-20 17:41:17 · 96 阅读 · 0 评论 -
框架学习随笔2-SpringBoot 配置文件
Spring Boot jars include metadata(元数据) files that provide details of all supported configuration properties. The files are designed to let IDE developers offer contextual(上下文的) help and “code completion” as users are working withapplication.propertiesor...原创 2020-09-13 19:52:36 · 103 阅读 · 0 评论 -
框架学习随笔2-SpringBoot简介
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".We take an opinionated view of the Spring platform(平台) and third-party libraries so you can get started with minimum fuss(无谓的忧虑). Most Sp.原创 2020-09-02 19:37:53 · 116 阅读 · 0 评论 -
框架学习随笔1-Spring简介、Spring MVC简介
Spring简介Spring框架是一个轻量级的解决方案,可以一站式地构建企业级应用。Spring是模块化的,所以可以只使用其中需要的部分。可以在任何web框架上使用控制反转(IoC),也可以只使用Hibernate集成代码或JDBC抽象层。它支持声明式事务管理、通过RMI或web服务实现远程访问,并可以使用多种方式持久化数据。它提供了功能全面的MVC框架,可以透明地集成AOP到软件中。Spring被设计为非侵入式的,这意味着你的域逻辑代码通常不会依赖于框架本身。在集成层(比如数据访问层),会存在一原创 2020-07-26 19:52:14 · 148 阅读 · 0 评论