package com.cuiyongzhi.wechat.controller;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import localForage from 'localforage'; | |
| export default { | |
| async remember(key, value, minutes) { | |
| let expired = -1; | |
| if (minutes) { | |
| expired = new Date().getTime() + minutes * 60000; | |
| } | |
| await localForage.setItem(key, {expired, value}); | |
| return value; |
如果用户在多条件查询页面中,不选择任何字段、不输入任何关键词,那么,必将返回表中所有数据; 如果用户在页面中,选择了部分字段并且输入了部分查询关键词,那么,就按用户设置的条件进行查询。
说到这里,不知道您是否已明白,其实,where 1=1的应用,不是什么高级的应用,也不是所谓的智能化的构造, 仅仅只是为了满足多条件查询页面中不确定的各种因素而采用的一种构造一条正确能运行的动态SQL语句的一种方法。
where 1=0; 这个条件始终为false,结果不会返回任何数据,只有表结构,可用于快速建表
"SELECT * FROM strName WHERE 1 = 0";
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # booleans | |
| true_boolean = True | |
| false_boolean = False | |
| # string | |
| my_name = "Leandro Tk" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 那些证书相关的玩意儿(SSL,X.509,PEM,DER,CRT,CER,KEY,CSR,P12等) (2015-10-15 16:30:31) | |
| 转载 | |
| ▼ | |
| 标签: it | |
| 之前没接触过证书加密的话,对证书相关的这些概念真是感觉挺棘手的,因为一下子来了一大堆新名词,看起来像是另一个领域的东西,而不是我们所熟悉的编程领域的那些东西,起码我个人感觉如此,且很长时间都没怎么搞懂.写这篇文章的目的就是为了理理清这些概念,搞清楚它们的含义及关联,还有一些基本操作. | |
| SSL | |
| SSL - Secure Sockets Layer,现在应该叫"TLS",但由于习惯问题,我们还是叫"SSL"比较多.http协议默认情况下是不加密内容的,这样就很可能在内容传播的时候被别人监听到,对于安全性要求较高的场合,必须要加密,https就是带加密的http协议,而https的加密是基于SSL的,它执行的是一个比较下层的加密,也就是说,在加密前,你的服务器程序在干嘛,加密后也一样在干嘛,不用动,这个加密对用户和开发者来说都是透明的.More:[维基百科] |
<cache:annotation-driven />
<bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">
<set>
<bean
class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean"
name="logoocc"/>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.一种治疗脑血栓的中药组合药,其特征是按下面的各中药成分和质量比组合而成:当归尾15份、川芎10份、牛膝15份、郁金10份、石决明15份、水牛角20份、生地15份、水蛭3份、大黄10份、鸡内金15份。 | |
| 2.根据权利要求1所述的一种治疗脑血栓的中药组合药,其特征是:一个人服用的一个剂量是按下面的各中药成分和质量组成:当归尾15克、川芎10克、牛膝15克、郁金10克、石决明15克、水牛角20克、生地15克、水蛭3克、大黄10克、鸡内金15克。 | |
| 专利地址 | |
| [0003] 中医分析脑血栓,有气虚血瘀证、阴虚血瘀证、血瘀痰阻证。本发明的一种治疗脑血栓的的中药组合药以驱风祛邪、抑菌毒、祛瘀通脉、补肾益气为辩证施治方案,达到标本兼治的目的。 | |
| [0004] 一种治疗脑血栓的中药组合药解决问题所采取的技术方案是按下面的各中药成分和质量比组合而成:当归尾15份、川芎10份、牛膝15份、郁金10份、石决明15份、水牛角20份、生地15份、水蛭3份、大黄10份、鸡内金15份。 | |
| [0005] 一种治疗脑血栓的中药组合药中的各药的药性:当归头和当归尾有活血、破血、养血、活血通络之功效。中药牛膝是祛风类药,能活血祛瘀、补肾、强筋骨、利尿通淋。川芎是一种中药植物,适用于活血行气,祛风止痛,药用价值广泛,药性辛温升散。医学研究表明,牛膝是滋补的中药,牛膝有抑菌灭菌、抗炎镇痛的功效,用于治疗脑溢血不仅能通血胳、还能提高人的免疫力;中药郁金味苦、性寒,郁金有行气化瘀、利胆退黄、清心解郁,利肝益血冲药石决明是一种鲍科动物的壳体,咸味、性寒、归肝,石决明能平肝潜阳、清肝明目,用于头晕目眩,视物昏花冲药水牛角性苦、寒,归肝、心,水牛角能清热解毒、凉血、定惊,用于温热高热、神昏乱语,水牛角的药性与羚羊角的药性相当,在保护野生动物野羚羊方面,水牛角能用于医学上代替羚羊角;中药生地有清血凉血、用于清肝火旺、肝肾亏损;中药水蛭是淡水野生空肠动物水蛭的干燥炮制品,水蛭的主要功效是通脉清瘀、能治疗中风、闭经、跌打损伤等,近来研究还发现,水蛭有一定的抗癌特效;中药大黄是泻火通便常用药物,但大黄除了能攻积滞瘀,还能清热凉血、祛瘀解毒、能降血压、降血脂,是治疗脑溢血的良药之一;中药鸡内金有健脾化散、涩精止遗的功效,鸡内金虽然没有直接的利肝降血功能,但鸡内金对血液中的瘀结成分有化散之功能,并且能补肾增强人的免疫力。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DV SSL | |
| DV SSL证书是只验证网站域名所有权的简易型(Class 1级)SSL证书,可10分钟快速颁发,能起到加密传输的作用,但无法向用户证明网站的真实身份。 | |
| 目前市面上的免费证书都是这个类型的,只是提供了对数据的加密,但是对提供证书的个人和机构的身份不做验证。 | |
| OV SSL | |
| OV SSL,提供加密功能,对申请者做严格的身份审核验证,提供可信身份证明。 | |
| 和DV SSL的区别在于,OV SSL 提供了对个人或者机构的审核,能确认对方的身份,安全性更高。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java -jar myservice.jar > log.file 2>&1 & |