<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[非淡泊无以明志，非宁静无以致远]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hello_worldee</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hello_worldee]]></copyright><item><title><![CDATA[Spring@value用法]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/79163310</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/79163310</guid><author>hello_worldee</author><pubDate>Thu, 25 Jan 2018 16:15:06 +0800</pubDate><description><![CDATA[为了简化读取properties文件中的配置值，spring支持@value注解的方式来获取，这种方式大大简化了项目配置，提高业务中的灵活性。
一、两种使用方法
1、@Value("#{configProperties['key']}")
2、@Value("${key}")
二、配置
2.1 @Value("#{configProperties['key']}")使用
2.1.1配置]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--spring websocket 和stomp实现消息功能]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78142064</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78142064</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:51:39 +0800</pubDate><description><![CDATA[实现一个消息驱动pojo

public class MarcHandler extends AbstractWebSocketHandler{
    private Logger LOGGER = LoggerFactory.getLogger(MarcHandler.class);

    @Override
    protected void handleTextMessage(W]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--spring+websocket整合]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78142050</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78142050</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:50:18 +0800</pubDate><description><![CDATA[spring4.0以后加入了对websocket技术的支持，撸主目前的项目用的是SSM（springMVC+spring+MyBatis）框

架，所以肯定要首选spring自带的websocket了，好，现在问题来了，撸主在网上各种狂搜猛找，拼凑了几个自称是

spring websocket的东东，下来一看，废物，其中包括从github上down下来的。举个例子，在搭建过程中有个问题，]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring与JMS异步消息]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78142007</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78142007</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:47:00 +0800</pubDate><description><![CDATA[异步处理通信是面向服务架构（SOA）的重要部分，因为企业中的许多系统通信，尤其是跟外部系统通信本来就是异步的。Java消息服务（JMS）就 是用来编写异步消息J2EE应用的API。使用JMS API的传统消息实现涉及到象这样的一些步骤：查找对列连接工厂、队列资源以及在实际发送和接受消息前，创建JMS会话（JMS session）。

Spring framework简化了用JEE组件（包括JM]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring与Restful风格API接口开发]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141993</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141993</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:45:21 +0800</pubDate><description><![CDATA[Restful风格的API是一种软件架构风格，设计风格而不是标准，只是提供了一组设计原则和约束条件。它主要用于客户端和服务器交互类的软件。基于这个风格设计的软件可以更简洁，更有层次，更易于实现缓存等机制。

在Restful风格中，用户请求的url使用同一个url而用请求方式：get，post，delete，put...等方式对请求的处理方法进行区分，这样可以在前后台分离式的开发中使得前端开发]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring Security保护bean方法]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141885</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141885</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:28:45 +0800</pubDate><description><![CDATA[在本章中我们将会看到如何使用Spring Security保护bean方法。

1.使用注解保护方法

在Spring Security中实现方法级安全性的最常见办法是使用特定的注解，将这些注解应用到需要保护的方法上。这样有几个好处，最重要的是当我们在编辑器中查看给定的方法时，能够很清楚地看到它的安全规则。 
Spring Security提供了三种不同的安全注解：

Spring]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring整合redia自动缓存管理]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141868</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141868</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:24:39 +0800</pubDate><description><![CDATA[转载自：http://blog.youkuaiyun.com/aqsunkai/article/details/51758900

maven项目中在pom.xml中依赖2个jar包，其他的spring的jar包省略：



[html] view
 plain copy


 


 



dependency>  
   groupId>redis.clientsgr]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring之缓存]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141855</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141855</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:22:01 +0800</pubDate><description><![CDATA[1.spring从3.1开始支持缓存功能。spring 自带的缓存机制它只在方法上起作用，对于你使用其他持久化层的框架来讲，是没有影响的，相对来讲这种缓存方式还是不错的选择。

2.提供缓存的接口：org.springframework.cache.Cache ；org.springframework.cache.CacheManager这两个接口都在context中，一个是用来提供缓存的，一]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring单元测试中的H2数据库]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141836</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141836</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:19:00 +0800</pubDate><description><![CDATA[H2数据库是一种由Java编写的，极小，速度极快，可嵌入式的数据库。非常适合用在单元测试等数据不需要保存的场景下面。
以下时其官网的介绍：
{% blockquote h2 http://www.h2database.com/html/main.html h2 %}
Welcome to H2, the Java SQL database. The main features of H2 a]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring配置数据源的三种方式（dbcp,c3p0,jndi）]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141823</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141823</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 13:16:34 +0800</pubDate><description><![CDATA[[html] view
 plain copy






1,使用org.springframework.jdbc.datasource.DriverManagerDataSource   
说明：DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用。   
bean id="dataSource" class]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring之AspectJ AOP]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141747</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141747</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 12:59:58 +0800</pubDate><description><![CDATA[转载请注明出处:http://blog.youkuaiyun.com/l1028386804/article/details/49744721

这里我们用一个完整的例子演示spring aspectj aop的使用。
首先新建一个maven项目，在项目的pom.xml中添加spring aop相关的依赖项：




[html] view
 plain copy]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring之AOP]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141739</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141739</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 12:57:45 +0800</pubDate><description><![CDATA[一.  为什么要面向切面编程（ Aspect Oriented Programming ），或者说为什么要用切面？

想象这样一个场景：一个项目起初开发的时候没有考虑日志功能，而是在最后想为每个业务方法加上记录日志的功能。

如果遇到这样的情况，是不是真的要重新编写每一个业务方法，给它们加上日志功能呢？

如果这样还不能说明面向切面编程的必要性，那么在考虑一个场景：一个项目由两个项目组]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring之Bean的五个作用域]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141734</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141734</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 12:56:02 +0800</pubDate><description><![CDATA[当通过Spring容器创建一个Bean实例时，不仅可以完成Bean实例的实例化，还可以为Bean指定特定的作用域。Spring支持如下5种作用域：



singleton：单例模式，在整个Spring IoC容器中，使用singleton定义的Bean将只有一个实例


prototype：原型模式，每次通过容器的getBean方法获取prototype定义的Bean时，都将产生一]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring高级装配]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141726</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141726</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 12:54:20 +0800</pubDate><description><![CDATA[内容概述

Spring Profile条件化的bean声明自动装配与歧义性bean的作用域Spring表达式语言

1、Spring Profile

在开发软件的时候，有一个很大的挑战就是将应用程序从一个环境迁移到另一个环境。开发阶段，某些环境相关做法可能并不适合迁移到生产环境中，甚至几遍迁移过去也无法正常工作。数据库配置、加密算法以及与外部系统的集成是跨环境部署时会发生变化的几个]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--Spring的三种配置方式]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78141719</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78141719</guid><author>hello_worldee</author><pubDate>Sat, 30 Sep 2017 12:52:22 +0800</pubDate><description><![CDATA[1、Explicit configuration in XML：显示的XML配置。
     优点：
     1）XML配置方式进一步降低了耦合，使得应用更加容易扩展，即使对配置文件进一步修改也不需要工程进行修改和重新编译。
     2）在处理大的业务量的时候，用XML配置应该更加好一些。
     缺点：
     1）配置文件读取和解析需要花费一定的时间，配置文件过多的时候难以管]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--SpringBoot文档]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78136941</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78136941</guid><author>hello_worldee</author><pubDate>Fri, 29 Sep 2017 20:01:07 +0800</pubDate><description><![CDATA[目录：

内置Servlet Container使用Spring Boot安装Spring Boot CLI开发一个简单的Spring Boot应用--使用最原始的方式

创建一个文件夹新建一个pom.xml文件命令：mvn package添加依赖开始写代码启动项目打包执行
Dependency Management

继承 spring-boot-starter-parent不继承]]></description><category></category></item><item><title><![CDATA[Java移动框架篇--Spring for Android简单试用]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78136920</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78136920</guid><author>hello_worldee</author><pubDate>Fri, 29 Sep 2017 19:58:47 +0800</pubDate><description><![CDATA[前一篇文章把SFA的官方介绍翻译了一哈哈，自然要拿个简单的例子来研究一下Android程序开发和SFA的架构。

    下面这个例子非常简单，完成的功能是：



从文本框中读入网址向该网址发送访问请求并显示响应的信息信息返回后向调用系统通知









图1 效果图




    不扭捏的先贴出最后完工的代码（不包含其他配置部分）。]]></description><category></category></item><item><title><![CDATA[Java移动框架篇--Spring mobile简单试用]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78136905</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78136905</guid><author>hello_worldee</author><pubDate>Fri, 29 Sep 2017 19:56:42 +0800</pubDate><description><![CDATA[spring mobile 是spring新推出的一个用于支持移动浏览的小框架，用起来很简单，和spring mvc结合也很方便。


首先建立一个spring mvc的工程



然后，在pom.xml中添加spring mobile的支持




[html] view
 plain copy






dependency>  
    group]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--使用SpringSocial 连接社交网络]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78136890</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78136890</guid><author>hello_worldee</author><pubDate>Fri, 29 Sep 2017 19:55:02 +0800</pubDate><description><![CDATA[社交网络已经成为目前人们生活中不可或缺的一部分。流行的社交网站，如 Facebook、LinkedIn、Twitter 和新浪微博等都聚集了非常高的人气，成为很多人每天必上的网站。大量的信息被分享到社交网络中。对于一个应用来说，提供对社交网络的支持是很有必要的。应用可以通过与社交网络的集成来迅速积累人气。与社交网络的集成主要有两个方面的功能：第一个是比较简单的用户登录集成，即允许用户使用社交网络网]]></description><category></category></item><item><title><![CDATA[Java后台框架篇--SpringData]]></title><link>https://blog.youkuaiyun.com/hello_worldee/article/details/78136876</link><guid>https://blog.youkuaiyun.com/hello_worldee/article/details/78136876</guid><author>hello_worldee</author><pubDate>Fri, 29 Sep 2017 19:51:55 +0800</pubDate><description><![CDATA[1.什么是SpringData？



Spring Data 项目的目的是为了简化构建基于 Spring 框架应用的数据访问计数，包括非关系数据库、Map-Reduce 框架、云数据服务等等；另外也包含对关系数据库的访问支持。

Spring Data 包含多个子项目：



Commons - 提供共享的基础框架，适合各个子项目使用，支持跨数据库持久化


Hadoo]]></description><category></category></item></channel></rss>