- 浅谈openresty
爱编码的钓鱼佬
nginxopenresty运维
熟悉了nginx后再来看openresty,不得不说openresty是比较优秀的。对nginx和openresty的历史等在这此就不介绍了。首先对标nginx,自然有优劣一、开发难度nginx:毫无疑问nginx的开发难度比较高,需要扎实的c/c++基础,而且还需要对nginx源码比较熟悉,开发效率慢,比如实现一个类似echo的功能,至少要上百行代码。而openresty只需要一句ngx.say
- OpenResty & Nginx:详细对比与部署指南
一个代码猎人
linuxopenrestynginx运维
简介Nginx和OpenResty都是高性能的Web服务器和反向代理服务器,但它们有着不同的特性和应用场景。Nginx是一个轻量级的、高性能的HTTP和反向代理服务器,而OpenResty是基于Nginx的集成软件平台,增强了Nginx的功能,特别是通过嵌入Lua脚本支持来实现灵活的Web应用开发。Nginx1.Nginx概述Nginx(Engine-X)是一个免费、开源、高性能的HTTP服务器和
- 1Panel使用GMSSL+Openresty实现国密/RSA单向自适应
Anyexyz
openresty
本文首发于Anyeの小站,转载请取得作者同意。前言国密算法是国家商用密码算法的简称。自2012年以来,国家密码管理局以《中华人民共和国密码行业标准》的方式,陆续公布了SM2/SM3/SM4等密码算法标准及其应用规范。其中“SM”代表“商密”,即用于商用的、不涉及国家秘密的密码技术。其中SM2为基于椭圆曲线密码的公钥密码算法标准,包含数字签名、密钥交换和公钥加密,用于替换RSA/Diffie-Hel
- nginx命名location跳转的模块上下文继承
码农心语
nginx学习c++开发LINUXnginx运维location请求上下文继承
目录1.缘起2.解决方案2.1保留指定模块的上下文信息2.2获取指定模块的上下文信息2.3设置指定模块的上下文信息2.4设置模块上下文是否需要继承标记2.5对openretylua代码的支持1.缘起nginx提供了非常棒的功能,命名location,如文章nginx的location匹配规则中描述,有时候我们可以通过lua脚本(在openresty中)或者自研nginx插件模块,根据相应的业务规则
- Linux防火墙iptables之概念篇
青牛踏雪御苍穹
为什么要学Linux防火墙?当你所在公司,出于安全原因,想上防火墙,而各大云厂商云防火墙和硬件防火墙费用及其昂贵,出于成本考虑,此时Linux的防火墙就是最好的解决方案,如果有较高且复杂的防护需求时,也可以考虑上开源的WAF,如OpenResty、OpenWAF等,这里就不过多叙述了,可以自行谷歌了解。Docker底层的网络转发是通过Linux内核模块netfilter/iptables完成工作的
- SpringBoot+Redis+MemCache+Nginx+Lua实现三级缓存架构(三)——Nginx+Lua实现定向请求分发
AmosZhu
上篇博文我们已经基于OpenResty搭建了Nginx+Lua的运行环境,并且编写了工程小Demo,本博文将基于上篇博文的环境来继续实现Nginx+Lua是实现定向请求分发参考之前的博文SpringBoot+Redis+MemCache+Nginx+Lua实现三级缓存架构(一)——三级缓存架构体系SpringBoot+Redis+MemCache+Nginx+Lua实现三级缓存架构(二)——Ngi
- 畅购商城(十二):接入微信扫码支付
Robod
好好学习,天天向上本文已收录至我的Github仓库DayDayUP:github.com/RobodLee/DayDayUP,欢迎Star畅购商城(一):环境搭建畅购商城(二):分布式文件系统FastDFS畅购商城(三):商品管理畅购商城(四):Lua、OpenResty、Canal实现广告缓存与同步畅购商城(五):Elasticsearch实现商品搜索畅购商城(六):商品搜索畅购商城(七):Th
- openresty (nginx)快速开始
西京刀客
LinuxC/C++openrestynginx运维
文章目录一、什么是openresty?二、openresty编译安装1.编译安装命令1.1编译完成后路径1.2常用编译选项解释2.nginx配置文件配置2.1nginx.conf模板3.nginx常见配置一个站点配置多个域名nginx配置中location匹配规则三、OpenResty工作原理OpenResty工作原理OpenResty处理请求流程Nginx架构的好处ngx_lua协程NIO编程(
- FastDFS安装并整合Openresty
良辰美景好时光
nginxopenresty
FastDFS安装并整合Openresty一、安装环境准备【CentOS7.9】二、FastDFS--tracker安装2.1.下载fastdfs2.2.FastDFS安装环境2.3.安装FastDFS依赖libevent库2.4.安装libfastcommon2.5.安装libserverframe网络框架2.6.tracker编译安装2.7.安装之后文件目录介绍2.8.错误处理2.9.配置Fa
- 缓存架构设计之——Nginx缓存
浮华1994
分布式缓存架构设计缓存nginx
前言为了提升网站的整体性能,我们一般会采用缓存,从宏观层面来说,会采用浏览器缓存和后端焕春,Nginx处于Web网站的服务最外层,而且支持浏览器缓存配置和后端数据缓存,用它来做部分部分数据缓存,效率更高。Web缓存是可以自动保存常见的文档副本打HTTP设备。当Web请求抵达缓存时,如果本地有"已缓存的"副本,就可以从本地设备而不是服务器中提取这个文档。1、OpenResty安装OpenResty®
- 【收藏】19张最全的架构师技术栈图谱
程序员达芬奇
架构架构
【收藏】19张最全的架构师技术栈图谱今天收集了19张关于软件架构师应该了解和掌握的技能图谱,希望这份技术知识图谱能够帮助到每一位奋斗在架构师技术路上的小伙伴。1、架构师图谱2、微服务架构秘籍3、互联网大流量的方法4、安全秘籍5、阿里巴巴常用小框架6、架构方法论图谱7、设计模式秘籍图谱8、大数据技能图谱9、云计算图谱10、云计算技能图谱11、OpenResty技能图谱12、容器技能图谱13、开发语言
- OpenResty 安装
萧曵 丶
NginxopenrestyShellnginx
安装OpenResty1.安装首先你的Linux虚拟机必须联网1)安装开发库首先要安装OpenResty的依赖开发库,执行命令:yuminstall-ypcre-developenssl-develgcc--skip-broken2)安装OpenResty仓库你可以在你的CentOS系统中添加openresty仓库,这样就可以便于未来安装或更新我们的软件包(通过yumcheck-update命令)
- OpenResty+Lua实现灰度发布
他爱向着欢乐
Luaopenresty灰度发布luaopenresty开发语言
OpenResty+Lua实现灰度发布业务场景用户通过浏览器发送一个请求给openresty,openresty调用lua脚本获取用户id地址,并查看该ip地址是否存在redis中,如果存在则让用户访问v2.0版本,否则让用户访问v1.0版本。如图所示:实现方案配置文件nginx.confhttp.confapp1.confapp2.confLua脚本abtest.lua实现流程请求先进入open
- Centos7安装原生Nginx并配置反向代理
风萧萧兮s
Nginxnginx运维
一、背景当我的应用程序需要集群化部署之时,必然需要一个反向代理,当然Nginx的大名,这里不做更多的介绍了,这里介绍一下Nginx常用的四大阵营1Ngnix原生版本nginxnews2NginxPlus商用版(收费的)AdvancedLoadBalancer,WebServer,&ReverseProxy-NGINX3NginxOpenResty版本OpenResty®-开源官方站4Tengine
- nginix+openresty+redis+tomcat实现多级缓存
李武忠小迷哥
redisnginx缓存
首先win中的nginx配置文件upstreamnginx-cluster{#nginx业务集群,redis集群,Tomcat集群;server192.168.216.169:8081;}server{listen80;server_namelocalhost;location/api{proxy_passhttp://nginx-cluster;}安装OpenResty1)安装开发库首先要安装O
- Openresty+Lua+Redis实现高性能缓存
风萧萧兮s
NginxRedisSpringCloud缓存openrestyluaredis
一、背景当我们的程序需要提供较高的并发访问时,往往需要在程序中引入缓存技术,通常都是使用Redis作为缓存,但是要再更进一步提升性能的话,就需要尽可能的减少请求的链路长度,比如可以将访问Redis缓存从Tomcat服务器提前Nginx原本访问缓存逻辑User--->Nginx->Tomcat->RedisUser--->Nginx->Redis二、介绍1OpenResty介绍OpenResty®是
- 初识nginx
求得浅欢风日好
以下是文字版本:nginx的三个主要应用场景:静态资源服务通过本地文件系统提供服务比如常见的HTML、CSS、js文件。反向代理服务缓存加速反向代理一般位于企业内网的边缘,不停地访问可能会很慢。所以把所有用户看起来不变的,或者一段时间不变的内容放在nginx上缓存下来,加速访问。负载均衡API服务OpenResty可以直接访问数据库/缓存数据库。nginx为什么会出现:本世纪,摩尔定律在单颗CPU
- Linux部署lomp环境,安装typecho、WordPress博客
良辰美景好时光
Linuxlinux
部署lomp环境,安装typecho、WordPress博客一、环境要求1.1.版本信息1.2.准备阿里云服务器【新用户免费使用三个月】1.3.准备远程工具【FinalShell】二、Linux下安装openresty三、Linux下安装Mysql四、安装Apache【此步骤可省略】4.1.安装Apache服务及其扩展包4.2.Apache服务相关命令4.3.检查Apache状态4.4.查看其配置
- 前端发布静态资源自动增加版本号
lgq2016
前端发布版本号
前端服务发布,一些css,js文件的响应头会进行强缓存的设置,比如响应头:Cache-Control,Etag,Last-Modified等。结果就是浏览器会缓存这些静态资源文件,如果前端服务迭代发布了,即使静态资源进行了更新,但是你的浏览器可能使用强缓存,访问缓存在本地的旧的静态资源文件,造成一系列的问题。本文基于openresty解决该问题。访问流程:①浏览器地址栏输入:http://10.1
- stm32 esp8266 ota升级-自建mqtt和文件服务器动态AB面升级
心之雅
otastm32单片机嵌入式硬件
stm32esp8266ota系列文章:stm32esp8266ota-快速搭建web服务器之docker安装openrestystm32esp8266ota升级-tcp模拟httpstm32esp8266ota升级-hex合并-烧录-bin生成stm32esp8266ota升级-qtbin文件处理工具stm32esp8266ota升级-自建mqtt和文件服务器动态AB面方式stm32esp826
- 【Kong】ODBC适配国产数据库
扬_帆_起_航
1.前言KongGateway是一个运行在Nginx上的Lua应用程序,它与OpenResty一起发布。KongGateway底层数据库只支持PostgreSQL和Cassandra,从3.4.0版本官方已不在支持Cassandra。微信截图_20231010220400.png由于大部分国产数据并没有提供Lua语言驱动,所有笔者将采用ODBC适配达梦数据库,文中涉及到的lua源码需要读者自行实现
- 9.OpenResty系列之10W并发实践
沈健_算法小生
高并发openresty
下图解决了上文所说的请求过多报错问题如图所示,系统支持30W请求,并发2W1./etc/sysctl.conf配置如下vm.swappiness=0#表示开启SYNCookies。当出现SYN等待队列溢出时,启用cookies来处理,可防范少量SYN>攻击,默认为0,表示关闭#此参数是为了防止洪水攻击的,但对于大并发系统,要禁用此设置net.ipv4.tcp_syncookies=1#在CentO
- 8.OpenResty系列之2W并发实践
沈健_算法小生
高并发openresty
本文的目标是,成功压测OpenResty接口达到10W并发.高并发其实就是能够扛助某一时刻流量,往往就呢几秒中,真正秒杀下单支付的流量是很小一部分.1.配置最大可打开文件数#临时生效ulimit-n65535#永久生效修改该文件vim/etc/security/limits.conf,新增以下两行*softnofile65535*hardnofile65535(base)[root@shenjia
- 7.OpenResty系列之LuaRestyRedisLibrary
沈健_算法小生
高并发openrestyjava开发语言
1.连接需授权的redisserver{location/redis1{content_by_lua_block{localredis=require"resty.redis"localred=redis:new()--1秒red:set_timeout(1000)localok,err=red:connect("127.0.0.1",6379)ifnotokthenngx.say("failed
- SpringCloud-高级篇(十七)
喵俺第一专栏
springcloudspringspringboot
(1)添加Redis缓存-缓存预热前面实现了openResty查询tomcat,但是缓存架构是,先查询Redis,Redis没有在查询tomcat,下面实现Redis的缓存功能了:--appendonlyyes运行的时候基于日志的方式做数据的持久化daocker运行Redis:这个时候就可以使用Redis客户端连接了初始化类的时候需要实现一个InitialializingBean,需要实现里面的一
- SpringCloud-高级篇(十六)
喵俺第一专栏
springcloudjavaspring
前面学习了Lua的语法,就可以在nginx去做编程,去实现nginx类里面的业务,查询Redis,查询tomcat等,业务逻辑的编写依赖于其他组件,这些组件会用到OpenResty的工具去实现(1)安装OpenRestylualib、luajit是lua提供的第三方模块,比如说我们操作Redis,操作Mysql这些工具模块都封装到了lualib里面了,所以只要集成了lualib里面的插件,就能实现
- Linux下安装OpenResty
世界这么大还遇见你
nginx大数据centoslinux
安装包下载1、上传至目标文件夹可用finalshell,xshell等工具拖拽上传2、解压tar-xzvfopenresty-VERSION.tar.gz3、编译安装需先安装以下开发库sudoyuminstall-yreadline-develpcre-developenssl-develperlgcc安装cdopenresty-VERSION/./configure--prefix=目标路径--
- Linux系统安装OpenResty
陛戈伯德
nginxubuntulinux
OpenResty®为如下Linux系统发布版本提供官方预发布包oUbuntuVersionCodenameSupportedArchitectures14.04Trustyamd6416.04Xenialamd64,arm6418.04Bionicamd64,arm6420.04Focalamd64,arm64oDebianVersionCodenameSupportedArchitecture
- linux下安装OpenResty
Blueeyedboy521
开发组件linuxnginxlua
目录一、说明二、安装1、安装开发库2、安装OpenResty仓库3、安装OpenResty4、安装opm工具5、目录结构6、配置nginx的环境变量**三、启动和运行四、备注一、说明首先你的linux虚拟机必须联网二、安装1、安装开发库首先要安装OpenResty的依赖开发库,执行命令:yuminstall-ypcre-developenssl-develgcc--skip-broken2、安装O
- Linux下安装openresty
良辰美景好时光
nginxlinuxopenresty
Linux下安装openresty十一、Linux下安装openresty11.1.概述11.2.下载OpenResty并安装相关依赖:11.3.使用wget下载:11.4.解压缩:11.5.进入OpenResty目录:11.6.编译和安装11.7.进入OpenResty的目录,找到nginx:11.8.在conf目录下的nginx.conf添加如下内容11.9.在sbin目录下启动nginx11
- jquery实现的jsonp掉java后台
知了ing
javajsonpjquery
什么是JSONP?
先说说JSONP是怎么产生的:
其实网上关于JSONP的讲解有很多,但却千篇一律,而且云里雾里,对于很多刚接触的人来讲理解起来有些困难,小可不才,试着用自己的方式来阐释一下这个问题,看看是否有帮助。
1、一个众所周知的问题,Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;
2、
- Struts2学习笔记
caoyong
struts2
SSH : Spring + Struts2 + Hibernate
三层架构(表示层,业务逻辑层,数据访问层) MVC模式 (Model View Controller)
分层原则:单向依赖,接口耦合
1、Struts2 = Struts + Webwork
2、搭建struts2开发环境
a>、到www.apac
- SpringMVC学习之后台往前台传值方法
满城风雨近重阳
springMVC
springMVC控制器往前台传值的方法有以下几种:
1.ModelAndView
通过往ModelAndView中存放viewName:目标地址和attribute参数来实现传参:
ModelAndView mv=new ModelAndView();
mv.setViewName="success
- WebService存在的必要性?
一炮送你回车库
webservice
做Java的经常在选择Webservice框架上徘徊很久,Axis Xfire Axis2 CXF ,他们只有一个功能,发布HTTP服务然后用XML做数据传输。
是的,他们就做了两个功能,发布一个http服务让客户端或者浏览器连接,接收xml参数并发送xml结果。
当在不同的平台间传输数据时,就需要一个都能解析的数据格式。
但是为什么要使用xml呢?不能使json或者其他通用数据
- js年份下拉框
3213213333332132
java web ee
<div id="divValue">test...</div>测试
//年份
<select id="year"></select>
<script type="text/javascript">
window.onload =
- 简单链式调用的实现技术
归来朝歌
方法调用链式反应编程思想
在编程中,我们可以经常遇到这样一种场景:一个实例不断调用它自身的方法,像一条链条一样进行调用
这样的调用你可能在Ajax中,在页面中添加标签:
$("<p>").append($("<span>").text(list[i].name)).appendTo("#result");
也可能在HQ
- JAVA调用.net 发布的webservice 接口
darkranger
webservice
/**
* @Title: callInvoke
* @Description: TODO(调用接口公共方法)
* @param @param url 地址
* @param @param method 方法
* @param @param pama 参数
* @param @return
* @param @throws BusinessException
- Javascript模糊查找 | 第一章 循环不能不重视。
aijuans
Way
最近受我的朋友委托用js+HTML做一个像手册一样的程序,里面要有可展开的大纲,模糊查找等功能。我这个人说实在的懒,本来是不愿意的,但想起了父亲以前教我要给朋友搞好关系,再加上这也可以巩固自己的js技术,于是就开始开发这个程序,没想到却出了点小问题,我做的查找只能绝对查找。具体的js代码如下:
function search(){
var arr=new Array("my
- 狼和羊,该怎么抉择
atongyeye
工作
狼和羊,该怎么抉择
在做一个链家的小项目,只有我和另外一个同事两个人负责,各负责一部分接口,我的接口写完,并全部测联调试通过。所以工作就剩下一下细枝末节的,工作就轻松很多。每天会帮另一个同事测试一些功能点,协助他完成一些业务型不强的工作。
今天早上到公司没多久,领导就在QQ上给我发信息,让我多协助同事测试,让我积极主动些,有点责任心等等,我听了这话,心里面立马凉半截,首先一个领导轻易说
- 读取android系统的联系人拨号
百合不是茶
androidsqlite数据库内容提供者系统服务的使用
联系人的姓名和号码是保存在不同的表中,不要一下子把号码查询来,我开始就是把姓名和电话同时查询出来的,导致系统非常的慢
关键代码:
1, 使用javabean操作存储读取到的数据
package com.example.bean;
/**
*
* @author Admini
- ORACLE自定义异常
bijian1013
数据库自定义异常
实例:
CREATE OR REPLACE PROCEDURE test_Exception
(
ParameterA IN varchar2,
ParameterB IN varchar2,
ErrorCode OUT varchar2 --返回值,错误编码
)
AS
/*以下是一些变量的定义*/
V1 NUMBER;
V2 nvarc
- 查看端号使用情况
征客丶
windows
一、查看端口
在windows命令行窗口下执行:
>netstat -aon|findstr "8080"
显示结果:
TCP 127.0.0.1:80 0.0.0.0:0 &
- 【Spark二十】运行Spark Streaming的NetworkWordCount实例
bit1129
wordcount
Spark Streaming简介
NetworkWordCount代码
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
- Struts2 与 SpringMVC的比较
BlueSkator
struts2spring mvc
1. 机制:spring mvc的入口是servlet,而struts2是filter,这样就导致了二者的机制不同。 2. 性能:spring会稍微比struts快。spring mvc是基于方法的设计,而sturts是基于类,每次发一次请求都会实例一个action,每个action都会被注入属性,而spring基于方法,粒度更细,但要小心把握像在servlet控制数据一样。spring
- Hibernate在更新时,是可以不用session的update方法的(转帖)
BreakingBad
Hibernateupdate
地址:http://blog.csdn.net/plpblue/article/details/9304459
public void synDevNameWithItil()
{Session session = null;Transaction tr = null;try{session = HibernateUtil.getSession();tr = session.beginTran
- 读《研磨设计模式》-代码笔记-观察者模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* “观
- 重置MySQL密码
chenhbc
mysql重置密码忘记密码
如果你也像我这么健忘,把MySQL的密码搞忘记了,经过下面几个步骤就可以重置了(以Windows为例,Linux/Unix类似):
1、关闭MySQL服务
2、打开CMD,进入MySQL安装目录的bin目录下,以跳过权限检查的方式启动MySQL
mysqld --skip-grant-tables
3、新开一个CMD窗口,进入MySQL
mysql -uroot
 
- 再谈系统论,控制论和信息论
comsci
设计模式生物能源企业应用领域模型
再谈系统论,控制论和信息论
偶然看
- oracle moving window size与 AWR retention period关系
daizj
oracle
转自: http://tomszrp.itpub.net/post/11835/494147
晚上在做11gR1的一个awrrpt报告时,顺便想调整一下AWR snapshot的保留时间,结果遇到了ORA-13541这样的错误.下面是这个问题的发生和解决过程.
SQL> select * from v$version;
BANNER
-------------------
- Python版B树
dieslrae
python
话说以前的树都用java写的,最近发现python有点生疏了,于是用python写了个B树实现,B树在索引领域用得还是蛮多了,如果没记错mysql的默认索引好像就是B树...
首先是数据实体对象,很简单,只存放key,value
class Entity(object):
'''数据实体'''
def __init__(self,key,value)
- C语言冒泡排序
dcj3sjt126com
算法
代码示例:
# include <stdio.h>
//冒泡排序
void sort(int * a, int len)
{
int i, j, t;
for (i=0; i<len-1; i++)
{
for (j=0; j<len-1-i; j++)
{
if (a[j] > a[j+1]) // >表示升序
- 自定义导航栏样式
dcj3sjt126com
自定义
-(void)setupAppAppearance
{
[[UILabel appearance] setFont:[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20]];
[UIButton appearance].titleLabel.font =[UIFont fontWithName:@"FZLTH
- 11.性能优化-优化-JVM参数总结
frank1234
jvm参数性能优化
1.堆
-Xms --初始堆大小
-Xmx --最大堆大小
-Xmn --新生代大小
-Xss --线程栈大小
-XX:PermSize --永久代初始大小
-XX:MaxPermSize --永久代最大值
-XX:SurvivorRatio --新生代和suvivor比例,默认为8
-XX:TargetSurvivorRatio --survivor可使用
- nginx日志分割 for linux
HarborChung
nginxlinux脚本
nginx日志分割 for linux 默认情况下,nginx是不分割访问日志的,久而久之,网站的日志文件将会越来越大,占用空间不说,如果有问题要查看网站的日志的话,庞大的文件也将很难打开,于是便有了下面的脚本 使用方法,先将以下脚本保存为 cutlog.sh,放在/root 目录下,然后给予此脚本执行的权限
复制代码代码如下:
chmo
- Spring4新特性——泛型限定式依赖注入
jinnianshilongnian
springspring4泛型式依赖注入
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- centOS安装GCC和G++
liuxihope
centosgcc
Centos支持yum安装,安装软件一般格式为yum install .......,注意安装时要先成为root用户。
按照这个思路,我想安装过程如下:
安装gcc:yum install gcc
安装g++: yum install g++
实际操作过程发现,只能有gcc安装成功,而g++安装失败,提示g++ command not found。上网查了一下,正确安装应该
- 第13章 Ajax进阶(上)
onestopweb
Ajax
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- How to determine BusinessObjects service pack and fix pack
blueoxygen
BO
http://bukhantsov.org/2011/08/how-to-determine-businessobjects-service-pack-and-fix-pack/
The table below is helpful. Reference
BOE XI 3.x
12.0.0.
y BOE XI 3.0 12.0.
x.
y BO
- Oracle里的自增字段设置
tomcat_oracle
oracle
大家都知道吧,这很坑,尤其是用惯了mysql里的自增字段设置,结果oracle里面没有的。oh,no 我用的是12c版本的,它有一个新特性,可以这样设置自增序列,在创建表是,把id设置为自增序列
create table t
(
id number generated by default as identity (start with 1 increment b
- Spring Security(01)——初体验
yang_winnie
springSecurity
Spring Security(01)——初体验
博客分类: spring Security
Spring Security入门安全认证
首先我们为Spring Security专门建立一个Spring的配置文件,该文件就专门用来作为Spring Security的配置