首页
学习
活动
专区
工具
TVP
发布

SnailTyan

专栏作者
717
文章
574551
阅读量
61
订阅数
Mybatis插入/删除批处理
文章作者:Tyan 博客:noahsnail.com  |  CSDN  |  简书
Tyan
2022-05-09
6610
Spring Boot 2.0.0参考手册_中英文对照_Part III_14-18
文章作者:Tyan 博客:noahsnail.com  |  CSDN  |  简书
Tyan
2022-05-09
3860
Spring Boot 2.0.0参考手册_中文版_Part III_14-18
文章作者:Tyan 博客:noahsnail.com  |  CSDN  |  简书
Tyan
2022-05-09
3330
Spring框架参考手册_5.0.0_中文版_Part II_3.4
        标准企业应用不会由一个对象(或Spring用语中的bean)组成。即使是最简单的应用也是由一些对象共同工作,呈现给终端用户用户看到的是一个连贯的应用。接下来的一节阐述了如何从定义许多独立的bean定义到完全实现的应用,它是一个通过对象协作来实现目标的过程。
Tyan
2022-05-09
7800
Spring框架参考手册_5.0.0_中英文对照版_Part II_3.4
A typical enterprise application does not consist of a single object (or bean in the Spring parlance). Even the simplest application has a few objects that work together to present what the end-user sees as a coherent application. This next section explains how you go from defining a number of bean definitions that stand alone to a fully realized application where objects collaborate to achieve a goal.
Tyan
2022-05-09
4940
Spring框架参考手册_5.0.0_中文版_Part II_3.3
文章作者:Tyan 博客:[noahsnail.com](http://noahsnail.com
Tyan
2022-05-09
3410
Spring框架参考手册_5.0.0_中英文对照版_Part II_3.3
文章作者:Tyan 博客:[noahsnail.com](http://noahsnail.com
Tyan
2022-05-09
2340
Spring框架参考手册_5.0.0_中英文对照版_Part II_3.2
The interface org.springframework.context.ApplicationContext represents the Spring IoC container and is responsible for instantiating, configuring, and assembling the aforementioned beans. The container gets its instructions on what objects to instantiate, configure, and assemble by reading configuration metadata. The configuration metadata is represented in XML, Java annotations, or Java code. It allows you to express the objects that compose your application and the rich interdependencies between such objects.
Tyan
2022-05-09
2480
Spring框架参考手册_5.0.0_中文版_Part II_3.2
org.springframework.context.ApplicationContext接口代表了Spring IoC容器并且负责实例化、配置和组装前面提到的beans。容器通过读取配置元数据得到说明什么对象要实例化、配置和组装。配置元数据可以用XML、Java注解或Java代码表示。它允许你表示构成应用的对象和对象间丰富的依赖关系。
Tyan
2022-05-09
2750
Spring Boot的应用启动与关闭
Spring Boot应用可以打成jar包,其中内嵌tomcat,因此可以直接启动使用。但是在Spring Boot应用启动之前,首先需要进行打包,本文讲述的是Maven工程的打包,打包需要的前提条件(pom.xml文件中的内容)是:
Tyan
2019-05-25
1.6K0
Spring Boot 2.0.0参考手册_中英文对照_Part IV_26
Spring Boot uses Commons Logging for all internal logging, but leaves the underlying log implementation open. Default configurations are provided for Java Util Logging, Log4J2 and Logback. In each case loggers are pre-configured to use console output with optional file output also available.
Tyan
2019-05-25
4760
Spring Boot 2.0.0参考手册_中文版_Part IV_26
Spring Boot所有的内部日志都采用Commons Logging,但开放了底层的日志实现。提供了对Java Util Logging,Log4J2和Logback的默认实现。在每个logger中都预先配置使用控制台作为输出,同时也可用可选的文件输出。
Tyan
2019-05-25
4810
Spring 5.0.0框架介绍_中文版_3.9
基于注解的配置提供了一种XML设置的可替代方式,它依赖于字节码元数据来连接组件,而不是用尖括号声明的方式。代替使用XML来描述bean连接,开发者通过将注解使用在相关的类,方法或字段声明中,将配置移动到了组件类本身的内部。正如在“Example: The RequiredAnnotationBeanPostProcessor”那节提到的那样,使用BeanPostProcessor与注解结合是扩展Spring IoC容器的的常见方法。例如,Spring 2.0引入了@Required注解来执行需要的属性的可能性。Spring 2.5使以同样地通用方法来驱动Spring的依赖注入变为可能。本质上来说,@Autowired提供了如3.4.5小节描述的同样的能力。“Autowiring collaborators”但更细粒度的控制和更广的应用性。Spring 2.5也添加对JSR-250注解的支持,例如,@PostConstruct和@PreDestroy 。Spring 3.0添加了对JSR-330,包含在javax.inject包内的注解(Java的依赖注入)的支持,例如@Inject和@Named。关于这些注解的细节可以在相关的小节找到。
Tyan
2019-05-25
9630
Spring框架参考手册_5.0.0_中英文对照版_Part II_3.9
An alternative to XML setups is provided by annotation-based configuration which rely on the bytecode metadata for wiring up components instead of angle-bracket declarations. Instead of using XML to describe a bean wiring, the developer moves the configuration into the component class itself by using annotations on the relevant class, method, or field declaration. As mentioned in the section called “Example: The RequiredAnnotationBeanPostProcessor”, using a BeanPostProcessor in conjunction with annotations is a common means of extending the Spring IoC container. For example, Spring 2.0 introduced the possibility of enforcing required properties with the @Required annotation. Spring 2.5 made it possible to follow that same general approach to drive Spring’s dependency injection. Essentially, the @Autowired annotation provides the same capabilities as described in Section 3.4.5, “Autowiring collaborators” but with more fine-grained control and wider applicability. Spring 2.5 also added support for JSR-250 annotations such as @PostConstruct, and @PreDestroy. Spring 3.0 added support for JSR-330 (Dependency Injection for Java) annotations contained in the javax.inject package such as @Inject and @Named. Details about those annotations can be found in the relevant section.
Tyan
2019-05-25
1.2K0
没有更多了
社区活动
RAG七天入门训练营
鹅厂大牛手把手带你上手实战
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档