<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[cxc_happy111的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/cxc_happy111</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; cxc_happy111]]></copyright><item><title><![CDATA[java中利用stream求list集合中某个字段的和]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/96831487</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/96831487</guid><author>cxc_happy111</author><pubDate>Mon, 22 Jul 2019 09:54:10 +0800</pubDate><description><![CDATA[描述：一个list中有多个实体类对象，求age的和


List&lt;Student&gt; list = new ArrayList&lt;&gt;();
Student1: name:张三;age:18
Student2: name:张三;age:20



Integer result = list.stream().collect(Collectors.summingInt(Stude...]]></description><category></category></item><item><title><![CDATA[在oracle数据库中查询时间并转为24小时制--------------String转Date类型或者Date转String类型]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/93968074</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/93968074</guid><author>cxc_happy111</author><pubDate>Fri, 28 Jun 2019 09:49:30 +0800</pubDate><description><![CDATA[1.在Oracle数据库中查询时间的时候，首先就是把日期从date类型的转化为String类型的。

2.将date类型的转成String类型的，直接调用传入date类型的参数，返回String类型的字符串


public static String dateToStr(Date dateDate) {
   SimpleDateFormat formatter = new SimpleDate...]]></description><category></category></item><item><title><![CDATA[java 验证18位身份证号是否合法]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/89332855</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/89332855</guid><author>cxc_happy111</author><pubDate>Tue, 16 Apr 2019 14:34:31 +0800</pubDate><description><![CDATA[把身份证号当做一个参数，然后再判断。


/**
	 * 验证18位身份编码是否合法
	 * 
	 * @param idCard
	 *            身份编码
	 * @return 是否合法
	 */
	/** 中国公民身份证号码最大长度。 */
	public static boolean validateIdCard18(String idCard) {
		boolean b...]]></description><category></category></item><item><title><![CDATA[java在jsp页面上判断一个字段是否为空并且设置整行的样式]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/88942510</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/88942510</guid><author>cxc_happy111</author><pubDate>Mon, 01 Apr 2019 10:24:51 +0800</pubDate><description><![CDATA[解释说明：1.判断表格中的的某一个字段为空

         2.如果为空的话，整行的样式设置为红色

这是表格中的一个字段


&lt;th data-options="field:'YXDH', title:'院校代号', width:60"&gt;&lt;/th&gt;

tb是table的id,给$("#tb").datagrid增加一个rowStyler属性,判断表...]]></description><category></category></item><item><title><![CDATA[java 在jsp页面上使用三元表达式判断字段是否为空并拼接字符串]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/88884859</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/88884859</guid><author>cxc_happy111</author><pubDate>Fri, 29 Mar 2019 10:15:37 +0800</pubDate><description><![CDATA[说明：院校代号名称这个字段是实体类中没有的一个字段，这是自定义的一个字段，这个字段是由院校名称和院校备注拼接成的。field:YXDHMC中的YXDHMC是自定义的。formatter:function(value,row)，row是一行的信息，return后面的就是三元表达式判断YXBZ这个字段是否为空，然后为true的话执行row.YXMC,false的话就是row.YXMC+'('+row...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---L1: Set Alarm]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86609217</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86609217</guid><author>cxc_happy111</author><pubDate>Wed, 23 Jan 2019 14:17:16 +0800</pubDate><description><![CDATA[Instructions：

Write a function named setAlarm which receives two parameters. The first parameter, employed, is true whenever you are employed and the second parameter, vacation is true whenever you a...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---The Feast of Many Beasts]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86609040</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86609040</guid><author>cxc_happy111</author><pubDate>Wed, 23 Jan 2019 14:08:22 +0800</pubDate><description><![CDATA[Instructions：

All of the animals are having a feast! Each animal is bringing one dish. There is just one rule: the dish must start and end with the same letters as the animal's name. For example, the...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---Function 1 - hello world]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86604205</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86604205</guid><author>cxc_happy111</author><pubDate>Wed, 23 Jan 2019 09:01:33 +0800</pubDate><description><![CDATA[Description:

Make a simple function called greet that returns the most-famous &quot;hello world!&quot;.

Test Driven Development (TDD)


import org.junit.Test;
import static org.junit.Assert.assertEquals;
impo...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---Grasshopper - Summation]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86604092</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86604092</guid><author>cxc_happy111</author><pubDate>Wed, 23 Jan 2019 08:52:23 +0800</pubDate><description><![CDATA[Instructions:

Summation:

Write a program that finds the summation of every number from 1 to num. The number will always be a positive integer greater than 0.

For example:


summation(2) -&amp;gt; 3
1 +...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---Opposite number]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86589043</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86589043</guid><author>cxc_happy111</author><pubDate>Tue, 22 Jan 2019 09:30:45 +0800</pubDate><description><![CDATA[Instructions:

Very simple, given a number, find its opposite.

Examples:


1: -1
14: -14
-34: 34

Sample Tests: 


import org.junit.Test;
import static org.junit.Assert.assertEquals;

public class Op...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---A Strange Trip to the Market]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86588825</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86588825</guid><author>cxc_happy111</author><pubDate>Tue, 22 Jan 2019 09:16:30 +0800</pubDate><description><![CDATA[Instructions:

You're on your way to the market when you hear beautiful music coming from a nearby street performer. The notes come together like you wouln't believe as the musician puts together patt...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记---DNA to RNA Conversion]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86541280</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86541280</guid><author>cxc_happy111</author><pubDate>Fri, 18 Jan 2019 15:52:33 +0800</pubDate><description><![CDATA[ 

原题：

Deoxyribonucleic acid, DNA is the primary information storage molecule in biological systems. It is composed of four nucleic acid bases Guanine ('G'), Cytosine ('C'), Adenine ('A'), and Thymin...]]></description><category></category></item><item><title><![CDATA[codewars解题笔记-----If you can't sleep, just count sheep!!]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86538792</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86538792</guid><author>cxc_happy111</author><pubDate>Fri, 18 Jan 2019 14:10:11 +0800</pubDate><description><![CDATA[题的描述：Given a non-negative integer, 3 for example, return a string with a murmur: &quot;1 sheep...2 sheep...3 sheep...&quot;. Input will always be valid, i.e. no negative integers.

Sample Tests:


import org.ju...]]></description><category></category></item><item><title><![CDATA[第一个springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86530780</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86530780</guid><author>cxc_happy111</author><pubDate>Thu, 17 Jan 2019 20:27:27 +0800</pubDate><description><![CDATA[
***************************
APPLICATION FAILED TO START
***************************
 
Description:
 
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource coul...]]></description><category></category></item><item><title><![CDATA[Axure RP 选选项卡的具体实现]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86096139</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86096139</guid><author>cxc_happy111</author><pubDate>Tue, 08 Jan 2019 20:17:57 +0800</pubDate><description><![CDATA[1.首先穿件一个新的页面，拖一个动态面板到新的页面上。



2.双击动态面板，填家内容。



3.如上图所示，双击面板状态中的TAB1。出现一个新的页面，新建几个矩形，如下图所示。



4.选中TAB1的矩形，右上角有个小黑点，点击小黑点选择一个长方形，没有底边的长方形，再把这个TAB1置顶。效果去图2.其他的使用别的颜色填充一下。

使用



5.选中长方形，双加右侧的按钮，添加事件。如...]]></description><category></category></item><item><title><![CDATA[Axure RP 如何实现下拉框二级联动效果]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/86081586</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/86081586</guid><author>cxc_happy111</author><pubDate>Tue, 08 Jan 2019 16:54:13 +0800</pubDate><description><![CDATA[1.新建一个空白页面，从左边元件库中选择“下拉列表框”拖动到右边空白面板，这里为了示例，先为下拉框赋值一些下拉框内容，双击下拉框添加内容，如下图所示。



2.从左边元件库中选择“动态面板”拖动到右边空白面板，如下图所示。



3.双击动态面板，为其命名，并根据一级下拉框的选项内容，增加面板状态，如下所示，每个省份对应的地市是不一样的，所以我这边增加这几个面板，每个面板设置一个有意义的名字，这...]]></description><category></category></item><item><title><![CDATA[封装Jpa中EntityManager的增删改查到BaseDao文件中并连接数据库测试]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/85629007</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/85629007</guid><author>cxc_happy111</author><pubDate>Wed, 02 Jan 2019 18:46:19 +0800</pubDate><description><![CDATA[1.首先在idea中创建一个springboot的项目









选择新建的目录就好了

2.在application.properties中连接好数据库。


spring.datasource.url=jdbc:mysql://localhost:3306/student?useUnicode=true&amp;amp;characterEncoding=utf-8&amp;amp;serverTim...]]></description><category></category></item><item><title><![CDATA[Hibernate-easyui 在IE浏览器中打印]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/85529426</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/85529426</guid><author>cxc_happy111</author><pubDate>Tue, 01 Jan 2019 12:08:33 +0800</pubDate><description><![CDATA[1.首先就是引入一个print.js的文件。下面就是print.js的内容，不用做任何的修改，直接复制粘贴就行。


/**
 * 打印js
 */

/**打印页面设置*/
function printsetup(){
	WebBrowser.execwb(8,1);  
}

/**打印页面预览  */
function printpreview(){
	WebBrowser.execwb(7...]]></description><category></category></item><item><title><![CDATA[Hibernate-EasyUI  Excel文件导入]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/85526557</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/85526557</guid><author>cxc_happy111</author><pubDate>Tue, 01 Jan 2019 11:47:59 +0800</pubDate><description><![CDATA[解释：通过前台的文本框的导入，在后台存入到数据库中，

1.首先就是在前台创建文本框，选择合适的Excel文件进行导入。form中的action指向的是后台Excel导入的地址，选择文件下面的&amp;lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;import_file&quot;&amp;gt;name的名字要与后台的名字一致。


         &amp;lt;form id=&quot;wgks_for...]]></description><category></category></item><item><title><![CDATA[Hibernate 限制查询数目，解决Limit在hql不能使用问题]]></title><link>https://blog.youkuaiyun.com/cxc_happy111/article/details/84475009</link><guid>https://blog.youkuaiyun.com/cxc_happy111/article/details/84475009</guid><author>cxc_happy111</author><pubDate>Sun, 25 Nov 2018 10:02:52 +0800</pubDate><description><![CDATA[在hql语句中，不能使用limit来限制显示的条数。

例如：


FROM user_info order by createdTime desc limit 1


显示的数目不是1条，而是你查询出来的条数，所以上述写法是错误的。

如何解决limit在hql中不能使用，并设置查询出来集合的数目，我们应该使用setMaxResults(e)方法来解决。

以下是使用Hibernate查询并限制...]]></description><category></category></item></channel></rss>