Spring
Jalen备忘录
这个作者很懒,什么都没留下…
展开
-
《Spring Boot in action》阅读笔记(1,2,3章节)
《Spring Boot in action》阅读笔记(1,2,3章节)中文名:Spring Boot实战英文名:Spring Boot in action作者:Craig Walls译者:丁雪丰出版社:人民邮电出版社2016年9月第1版随书源码:www.manning.com/books/spring-boot-in-action注:随书源码版本比较老,可以按自己的来2004年,Spring Framework 1.0正式发布Spring Boot: 部署、监控、度量等Spr.转载 2021-05-13 22:38:43 · 645 阅读 · 0 评论 -
记spring boot打war包
1. 排除tomcat依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.转载 2020-07-09 14:14:35 · 129 阅读 · 1 评论 -
spring集成javamail发送邮件
1. 依赖(1)spring基本jar包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>4.3.8.RELEASE...原创 2017-12-22 12:08:05 · 1130 阅读 · 0 评论 -
log4j配置
###Setting###log4j.rootLogger = debug,stdout,D,E,I###Output to console###log4j.appender.stdout = org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target = System.outlog4j.appender.stdout.lay原创 2017-11-24 12:43:53 · 136 阅读 · 0 评论 -
使用Spring PropertiesLoaderUtils读取properties属性文件
场景:读取properties属性文件。1.定义属性文件 (在classpath下,我直接放在resources路径下):server.properties##server infoserver.ip=192.168.59.58server.port=80802.读取private static String[] getServerInfo(String label){ Str...原创 2017-08-09 09:56:56 · 7433 阅读 · 2 评论 -
Spring5学习(1)-概要
Spring: the source for modern java1. Spring Boot-BUILD(构建) ANYTHINGSpring Boot is designed to get you up and running as quickly as possible, with minimal upfront configuration of Spring. Spring原创 2017-11-28 10:46:05 · 929 阅读 · 0 评论 -
Spring5学习(2)-Spring IO platform
Main ProjectsFrom configuration to security, web apps to big data – whatever the infrastructure(基础设施) needs of your application may be, there is a Spring Project to help you build it. Start small an翻译 2017-11-28 14:30:14 · 1513 阅读 · 0 评论 -
spring项目中静态方法中使用注入的bean
1. 说明:项目中涉及到dubbo服务,在项目中需要将这个服务作为一个bean注入,由于本人需要在静态方法中使用这个bean,所以如果使用类似@Autowire等注解注入时会编译报错。2. 解决方法:自己写一个工具类,通过spring上下文获取这个bean。转成静态的。import org.springframework.beans.BeansException;impo原创 2017-12-28 12:15:38 · 5453 阅读 · 0 评论 -
SSM+Swagger2+mysql
步骤:1. 搭建SSM框架;2. 引入maven依赖: com.mangofactory swagger-springmvc 1.0.2 3. 拷贝dist目录下文件到webapp下面,并修改index.html中的url指向自己的地址;4. 启动服务,页面输入http://localhos转载 2018-02-05 12:45:36 · 492 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring HATEOAS
Spring HATEOASCreate REST representations that follow the HATEOAS principle from your Spring-based applications.(根据基于Spring的应用程序的HATEOAS原则创建的REST表现形式)Spring HATEOAS provides some API原创 2017-12-05 09:22:59 · 528 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Security
Spring SecuritySpring Security is a powerful and highly customizable(定制的) authentication(认证) and access-control framework. It is the de-facto(事实上的) standard(标准) for securing Spring-based application原创 2017-12-04 16:56:51 · 594 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Batch
Spring BatchA lightweight, comprehensive(全面的,详细的) batch framework designed to enable the development of robust(强大的) batch applications vital for(至关重要) the daily operations(运作) of enterprise systems.原创 2017-12-04 16:32:43 · 254 阅读 · 0 评论 -
《Spring+Mybatis企业应用实战》学习-1~3章
1.Mybatis是相对于Hibernate这种一站式的ORM来讲,它是“半自动化”的;2.Model1和Model2① Model1模式:Web应用几乎全部由JSP页面(身兼View和Controller角色)组成,用少量的JavaBean来处理数据库连接等操作;② Model2模式:Servlet为前端控制器,后端JavaBean完成实际逻辑处理,最后使用JSP处理显示逻辑原创 2017-08-07 12:03:46 · 523 阅读 · 0 评论 -
spring定时器的基本使用
1.使用注解:定义一个组件,扫描一下包即可package com.spring.schedule.demo01;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.scheduling.annotation.EnableScheduling;import org.sprin原创 2017-09-18 15:24:53 · 363 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Boot
Spring BootTakes an opinionated view(固执己见) of building production-ready(生产就绪) Spring applications. Spring Boot favors(关心) convention over configuration(约定优于配置) and is designed to get you up and runn原创 2017-11-28 15:25:15 · 308 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Framework
Spring FrameworkCore support for dependency injection(依赖注入), transaction management, web applications, data access, messaging, testing and more.IntroductionThe Spring Framework provides原创 2017-11-28 16:27:09 · 1153 阅读 · 1 评论 -
Spring5学习(二)-spring projects之Spring Cloud Data Flow
Spring Cloud Data FlowSpring Cloud Data Flow is a toolkit(工具包) for building data integration(数据集成) and real-time data processing(实时数据处理) pipelines(管道).Pipelines consist of(包括) Spring Boot apps,原创 2017-11-28 17:31:08 · 1722 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Cloud
Spring CloudSpring Cloud provides tools for developers to quickly build some of the common patterns(模式) in distributed systems (e.g. configuration management, service discovery(发现), circuit(线路, 流程,原创 2017-11-29 10:38:19 · 1268 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Data
Spring DataSpring Data’s mission(任务, 使命) is to provide a familiar(熟悉的) and consistent(一致的), Spring-based programming model for data access while still retaining(保留,保持) the special traits(人的个性,显著的特点,原创 2017-11-29 12:16:44 · 652 阅读 · 0 评论 -
Spring5学习(二)-spring projects之Spring Integration
Spring IntegrationExtends(扩展) the Spring programming model(编程模型) to support the well-known(众所周知的) Enterprise Integration Patterns(企业集成模式). Spring Integration enables lightweight(轻量级) messaging withi原创 2017-12-01 16:15:44 · 3400 阅读 · 2 评论 -
HttpClient连接池配置文件
配置http连接池:1.在spring-context.xml配置文件中引入2.连接池配置文件spring-httpclient.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi转载 2017-08-07 08:39:29 · 765 阅读 · 0 评论