<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[暖阳阳]]></title><description><![CDATA[java]]></description><link>https://blog.csdn.net/houysx</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; houysx]]></copyright><item><title><![CDATA[JPA（七）查询总结]]></title><link>https://blog.csdn.net/houysx/article/details/80731958</link><guid>https://blog.csdn.net/houysx/article/details/80731958</guid><author>houysx</author><pubDate>Tue, 19 Jun 2018 11:47:19 +0800</pubDate><description><![CDATA[一、根据ｉｄ查询

　　顾名思义：即根据主键查询一个实体。在 JPA 中提供了两个方法。分别是： 
　　find(Class entityClass,Object id); 
　　getReference(Class entityClass,Object id); 
他们的区别是：

查询的时机不一样： 
　　find 的方法是立即加载，只要一调用方法就马上发起查询。 
　　getReferenc...]]></description><category></category></item><item><title><![CDATA[JPA（六）多对多]]></title><link>https://blog.csdn.net/houysx/article/details/80730296</link><guid>https://blog.csdn.net/houysx/article/details/80730296</guid><author>houysx</author><pubDate>Tue, 19 Jun 2018 10:55:02 +0800</pubDate><description><![CDATA[1.多对多实体类配置



@Entity
@Table(name = &quot;role&quot;)
public class Role {

    @Id
    @Column(name = &quot;role_id&quot;)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long roleId;

    @Column(nam...]]></description><category></category></item><item><title><![CDATA[JPA（六）多表配置]]></title><link>https://blog.csdn.net/houysx/article/details/80729363</link><guid>https://blog.csdn.net/houysx/article/details/80729363</guid><author>houysx</author><pubDate>Tue, 19 Jun 2018 10:23:39 +0800</pubDate><description><![CDATA[1、一对多实体类的配置

我们采用的示例为客户和联系人。 
客户：指的是一家公司，我们记为 A。 
联系人：指的是 A 公司中的员工。 
在不考虑兼职的情况下，公司和员工的关系即为一对多。

/**
* 客户的实体类
* 明确使用的注解都是 JPA 规范的
* 所以导包都要导入 javax.persistence 包下的
*/
@Entity // 声明实体类
@Table(name = &quot;cst...]]></description><category></category></item><item><title><![CDATA[JPA（六） JPA 中的快照机制（用于缓存同步）]]></title><link>https://blog.csdn.net/houysx/article/details/80726768</link><guid>https://blog.csdn.net/houysx/article/details/80726768</guid><author>houysx</author><pubDate>Mon, 18 Jun 2018 21:32:12 +0800</pubDate><description><![CDATA[　　　JPA 向一级缓存放入数据时，同时复制一份数据放入快照中，当使用 commit()方法提交事务时，同时会清 
理一级缓存，这时会使用主键字段的值判断一级缓存中的对象和快照中的对象是否一致，如果两个对象中的属性发 
生变化，则执行 update 语句，将缓存的内容同步到数据库，并更新快照；如果一致，则不执行 update 语句。 
　　　快照的作用就是确保一级缓存中的数据和数据库中的数据一致。...]]></description><category></category></item><item><title><![CDATA[JPA(五) 主键生成策略]]></title><link>https://blog.csdn.net/houysx/article/details/80726742</link><guid>https://blog.csdn.net/houysx/article/details/80726742</guid><author>houysx</author><pubDate>Mon, 18 Jun 2018 21:29:28 +0800</pubDate><description><![CDATA[1 JPA 中四种主键生成策略

1.1 IDENTITY: 主键由数据库自动生成 （主要是自动增长型）



//用法：
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long custId;

1.2 SEQUENCE ：根据底层数据库的序列来生成主键，条件是数据库支持序列。



用法：
@Id
@Genera...]]></description><category></category></item><item><title><![CDATA[hibernate（二）基本操作]]></title><link>https://blog.csdn.net/houysx/article/details/80702929</link><guid>https://blog.csdn.net/houysx/article/details/80702929</guid><author>houysx</author><pubDate>Fri, 15 Jun 2018 11:17:08 +0800</pubDate><description><![CDATA[一、hibernate CURD基本操作

package com.itheima.test;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.Test;

import com....]]></description><category></category></item><item><title><![CDATA[hibernate（一）配置]]></title><link>https://blog.csdn.net/houysx/article/details/80702834</link><guid>https://blog.csdn.net/houysx/article/details/80702834</guid><author>houysx</author><pubDate>Fri, 15 Jun 2018 11:11:53 +0800</pubDate><description><![CDATA[一、依赖导入



&amp;lt;dependencies&amp;gt;
        &amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;mysql&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;mysql-connector-java&amp;lt;/artifactId&amp;gt;
            &amp;lt;version...]]></description><category></category></item><item><title><![CDATA[JPA(四) 基本查询]]></title><link>https://blog.csdn.net/houysx/article/details/80698231</link><guid>https://blog.csdn.net/houysx/article/details/80698231</guid><author>houysx</author><pubDate>Thu, 14 Jun 2018 20:59:41 +0800</pubDate><description><![CDATA[package com.it.jpa.test;

import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.Query;

import org.junit.Test;

import com...]]></description><category></category></item><item><title><![CDATA[JPA(三）JPA  的 API]]></title><link>https://blog.csdn.net/houysx/article/details/80698116</link><guid>https://blog.csdn.net/houysx/article/details/80698116</guid><author>houysx</author><pubDate>Thu, 14 Jun 2018 20:48:10 +0800</pubDate><description><![CDATA[1.1 Persistence 对象

Persistence 对 象主 要作 用 是用 于 获 取 EntityManagerFactory 对 象 的 。 通过 调 用 该 类 的
createEntityManagerFactory 静态方法，根据配置文件中持久化单元名称创建 EntityManagerFactory。
//1. 创建 EntitymanagerFactory
@Test
S...]]></description><category></category></item><item><title><![CDATA[JPA（二）JPA配置]]></title><link>https://blog.csdn.net/houysx/article/details/80698043</link><guid>https://blog.csdn.net/houysx/article/details/80698043</guid><author>houysx</author><pubDate>Thu, 14 Jun 2018 20:41:49 +0800</pubDate><description><![CDATA[一、依赖导入，以maven 工程导入坐标为例


&amp;lt;properties&amp;gt;
        &amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;
        &amp;lt;project.hibernate.version&amp;gt;5.0.7.Final&amp;lt;/project.hibe...]]></description><category></category></item><item><title><![CDATA[JPA（一）JPA与hibernate概述]]></title><link>https://blog.csdn.net/houysx/article/details/80697875</link><guid>https://blog.csdn.net/houysx/article/details/80697875</guid><author>houysx</author><pubDate>Thu, 14 Jun 2018 20:25:07 +0800</pubDate><description><![CDATA[1.ORM 概述

　　　　ORM（Object-Relational Mapping） 表示对象关系映射。在面向对象的软件开发中，通过 
ORM，就可以把对象映射到关系型数据库中。只要有一套程序能够做到建立对象与数据库的关联， 
操作对象就可以直接操作数据库数据，就可以说这套程序实现了 ORM 对象关系映射 
　　　　简单的说：ORM 就是建立实体类和数据库表之间的关系，从而达到操作实体类就相当...]]></description><category></category></item><item><title><![CDATA[CAS单点登录(四）CAS  客户端与 SpringSecurity]]></title><link>https://blog.csdn.net/houysx/article/details/80578840</link><guid>https://blog.csdn.net/houysx/article/details/80578840</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 11:24:21 +0800</pubDate><description><![CDATA[4.1 Spring Security 测试工程搭建 

（1）建立 Maven 项目 casclient_demo3 ，引入 spring 依赖和 spring secrity 相关依赖 ，tomcat 
端口设置为 9003 
（2）建立 web.xml ,添加过滤器等配置 
（3）创建配置文件 spring-security.xml 
（4）添加 html 页面



4.2 Spring ...]]></description><category></category></item><item><title><![CDATA[CAS单点登录(四）CAS  客户端与 SpringSecurity]]></title><link>https://blog.csdn.net/houysx/article/details/80578836</link><guid>https://blog.csdn.net/houysx/article/details/80578836</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 11:24:08 +0800</pubDate><description><![CDATA[4.1 Spring Security 测试工程搭建 

（1）建立 Maven 项目 casclient_demo3 ，引入 spring 依赖和 spring secrity 相关依赖 ，tomcat 
端口设置为 9003 
（2）建立 web.xml ,添加过滤器等配置 
（3）创建配置文件 spring-security.xml 
（4）添加 html 页面



4.2 Spring ...]]></description><category></category></item><item><title><![CDATA[CAS单点登录（三）   服务端界面改造]]></title><link>https://blog.csdn.net/houysx/article/details/80578617</link><guid>https://blog.csdn.net/houysx/article/details/80578617</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 11:12:39 +0800</pubDate><description><![CDATA[3.CAS 服务端界面改造

3.1 需求分析 
我们现在动手将 CAS 默认的登录页更改为自己的登陆页

3.2  改头换面 
3.2.1 拷贝资源 
（1）将登陆页 login.html 拷贝到 cas 系统下 WEB-INF\view\jsp\default\ui 目录下 
（2）将 css js 等文件夹拷贝到 cas 目录下 
（3） 将原来的 casLoginView.jsp 改名为c...]]></description><category></category></item><item><title><![CDATA[CAS单点登录（三） 服务端数据源设置]]></title><link>https://blog.csdn.net/houysx/article/details/80578467</link><guid>https://blog.csdn.net/houysx/article/details/80578467</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 11:05:08 +0800</pubDate><description><![CDATA[2.1 需求分析

我们现在让用户名密码从我们的 user 表里做验证 
（1）修改 cas 服务端中 web-inf 下 deployerConfigContext.xml ，添加如下配置



&amp;lt;bean id=&quot;dataSource&quot; class=&quot;com.mchange.v2.c3p0.ComboPooledDataSource&quot;
p:driverClass=&quot;com.mysql.j...]]></description><category></category></item><item><title><![CDATA[CAS单点登录（二）客户端入门小 Demo]]></title><link>https://blog.csdn.net/houysx/article/details/80578289</link><guid>https://blog.csdn.net/houysx/article/details/80578289</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 10:57:48 +0800</pubDate><description><![CDATA[1.5.1 客户端工程 1 搭建

（1）搭建工程引入依赖 
　　　创建 Maven 工程 （war）casclient_demo1 引入 cas 客户端依赖并制定 tomcat 运行端口为9001 
　　　



&amp;lt;dependencies&amp;gt;
        &amp;lt;!-- cas --&amp;gt;
        &amp;lt;dependency&amp;gt;
            &amp;lt;g...]]></description><category></category></item><item><title><![CDATA[CAS单点登录（二）服务端部署]]></title><link>https://blog.csdn.net/houysx/article/details/80577993</link><guid>https://blog.csdn.net/houysx/article/details/80577993</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 10:45:03 +0800</pubDate><description><![CDATA[1.3 CAS 服务端部署

Cas 服务端其实就是一个 war 包。 
将其改名为 cas.war 放入 tomcat 目录下的 webapps 下。启动 
tomcat 自动解压 war 包。浏览器输入 http://localhost:8080/cas/login ，可看到登录页面



这里有个固定的用户名和密码 casuser /Mellon 
登录成功后会跳到登录成功的提示页面 


...]]></description><category></category></item><item><title><![CDATA[CAS单点登录（一）简介]]></title><link>https://blog.csdn.net/houysx/article/details/80577663</link><guid>https://blog.csdn.net/houysx/article/details/80577663</guid><author>houysx</author><pubDate>Tue, 05 Jun 2018 10:29:04 +0800</pubDate><description><![CDATA[1. 开源单点登录系统 CAS

1.1 什么是单点登录

　　　单点登录（Single Sign On），简称为 SSO，是目前比较流行的企业业务整合的解决方案 
之一。SSO 的定义是在多个应用系统中，用户只需要登录一次就可以访问所有相互信任的应 
用系统。

　　　对于分布式项目，我们目前的系统存在诸多子系统，而这些子系统是分别部署在不同的服务器中，那么使用传统方式的 session 是无法...]]></description><category></category></item><item><title><![CDATA[AngularJs 指令]]></title><link>https://blog.csdn.net/houysx/article/details/80563916</link><guid>https://blog.csdn.net/houysx/article/details/80563916</guid><author>houysx</author><pubDate>Mon, 04 Jun 2018 10:30:16 +0800</pubDate><description><![CDATA[AngularJs GitHub: https://github.com/angular/angular.js/ 
    AngularJs下载地址：https://angularjs.org/

1、ng-model 
这个大家都非常熟悉了，就是将表单控件和当前作用域的属性进行绑定。需要注意绑定的scope的范围（父scope与子scope）。 
ng-model主要绑定的元素包括input，...]]></description><category></category></item><item><title><![CDATA[spring boot（一）简介]]></title><link>https://blog.csdn.net/houysx/article/details/80562577</link><guid>https://blog.csdn.net/houysx/article/details/80562577</guid><author>houysx</author><pubDate>Mon, 04 Jun 2018 08:48:11 +0800</pubDate><description><![CDATA[一、什么是 Spring Boot

　　　Spring 诞生时是 Java 企业版（Java Enterprise Edition，JEE，也称 J2EE）的轻量级代替 
品。无需开发重量级的 Enterprise JavaBean（EJB），Spring 为企业级 Java 开发提供了一种 
相对简单的方法，通过依赖注入和面向切面编程，用简单的 Java 对象（Plain Old Java O...]]></description><category></category></item></channel></rss>