- 黑猴子的家: Eclipse 启动报 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
黑猴子的家
1、log!SESSION2014-10-2410:24:10.240eclipse.buildId=4.3.2.M20140221-1700java.version=1.8.0_144java.vendor=OracleCorporationBootLoaderconstants:OS=linux,ARCH=x86,WS=gtk,NL=zh_CNFrameworkarguments:-produ
- Goods的Dao类
Joy_yang17
packagecom.nsu.dao;importjava.sql.Connection;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.util.ArrayList;importorg.eclipse.swt.internal.win32.UDACCEL;importcom.nsu.bean.Goods;import
- 井通SWTC公链项目
Mr陈_7424
斜杠钱包——http://api.slashwallet.online/news/sla_register?formPersion=formPersion=10785653059171123200&from=singlemessage&isappinstalled=0图片发自App图片发自App
- 使用switch..case判断
Tz1314
switch中比较是===1.类型和值都必须是一样在用switch设置层级的时候,怎么也显示不出来,查阅文档发现swtich的本质是===我设置的是==
- JavaGUI之SWT框架【阶段练习】
飞哥不鸽
GUISWTJava阶段练习
文章目录效果展示选项卡界面创建划分右侧区域填充右侧上方Composite填充右侧下方Composite填充左侧Composite完整代码SWT基础部分的内容以全部写完,现在让我们将以前学到的知识综合到一起,写一个小demo(无交互功能)效果展示选项卡界面创建观察不难发现,整个GUI界面的基石部分是由TabFolder组成,所以我们先将该组件创建出来,后续界面将在此基础上划分编后写importorg
- UE学习笔记-- Switch Unreal Engine Version 时 Missing UnrealBuildTool.exe after build 解决办法
就一枚小白
UE学习笔记学习笔记虚幻游戏引擎ue5ue4
前言最近在基于UE5写代码,发现有些功能需要兼容UE4。所以我下载了UE4的版本,然后右键uproject,swtich到UE4。然后报错。解决办法进入到UE5安装目录下:[UE5_DIR]\Engine\Binaries\Win64然后在当前目录下找到:UnrealVersionSelector.exe双击它就好了。然后找到你的uproject重新SwitchUEVersion就好了。如果还是不
- Java SWT Composite 绘画
深色風信子
JavaSWT绘画JavaGUISWTGUIJavaComposite
JavaSWTComposite绘画1JavaSWT2Java图形框架AWT、Swing、SWT、JavaFX2.1JavaAWT(AbstractWindowToolkit)2.2JavaSwing2.3JavaSWT(StandardWidgetToolkit)2.4JavaJavaFX3比较和总结1JavaSWTJavaSWT(StandardWidgetToolkit)是一套用于构建桌面图
- JavaGUI框架之SWT【布局FillLayout】
飞哥不鸽
SWTGUISWTJava
文章目录两种定位方式绝对定位托管定位FillLayout布局方向布局留白终于来到我最喜欢的部分——布局篇章。可以说布局就是SWT的灵魂。布局如此重要,那么我们该怎么理解布局这个概念呢?我们以Button这个组件为例子,如果将他放在Shell上,那么他该定位在shell的哪个位置呢,他的大小又该如何控制呢?这些都是布局控制的内容。两种定位方式绝对定位绝对定位,通过代码的方式设置控件应该出现在容器的哪
- JavaGUI之SWT框架【RowLayout】
飞哥不鸽
SWTJavaGUISWT
文章目录Rowlayout介绍RowLayout属性wrap属性pack属性justify属性type属性留白属性fill属性RowDataRowlayout介绍RowLayout是托管布局的一种,它的布局理念是将面板容器按照行来划分,优先填充行。当行填充满或无剩余空间时,填充下一行。RowLayout与FillLayout不同的是,FillLayout是以整个容器面板为单位进行填充,RowLay
- JavaGUI之SWT框架 【SashForm CBanner】
飞哥不鸽
SWTGUISWTJava
文章目录SashForm分割窗样式设置窗口显示比例多层划分窗口CBannerSashForm分割窗SashForm分割窗,能够将容器面板进行切割,分为两块。SashForm分割的方向有两种,一种是水平分割,另一种是垂直分割。SashForm的创建方式如下//创建分割窗口SashFormsashForm=newSashForm(shell,SWT.HORIZONTAL);//创建窗口1Composi
- JavaGUI之SWT框架【面板容器类 选项卡TabFolder】
飞哥不鸽
SWTGUIjavaSWT
文章目录TabFolder选项卡的组成选项卡样式CTabFolder自定义选项卡自定义选项卡样式颜色设置TabFolder选项卡的功能非常强大,但创建方式也相对复杂//创建TabFolder对象TabFoldertabFolder=newTabFolder(composite,SWT.NONE);//创建TabItemfor(inti=0;i<5;i++){TabItemtabItem=newTa
- react-router与react-router-dom的区别
家有饿犬和聋猫
写法上的区别:写法1:import{Swtich,Route,Router,HashHistory,Link}from'react-router-dom';写法2:import{Switch,Route,Router}from'react-router';import{HashHistory,Link}from'react-router-dom';react-router实现了路由的核心功能rea
- PO/VO/BO/DTO/POJO 解释
低至一折起
POPersistantObject持久对象最形象的理解就是一个PO就是数据库中的一条记录。好处是可以把一条记录作为一个对象处理,可以方便的转为其它对象。VO1.ValueObject值对象2.ViewObject表现层对象主要对应界面显示的数据对象。对于一个WEB页面,或者SWT、SWING的一个界面,用一个VO对象对应整个界面的值。BOBusinessObject业务对象主要作用是把业务逻辑封
- 风二西CTF流量题大集合-刷题笔记|基础题(4)
zerorzeror
笔记安全web安全网络网络安全python
61.sql2sql.pcapngflag{a3eb0ff8-e467-5036-7c9b-287f6848d5f3}62.冰蝎2.0swt1.pcapngflag{0867c25f69f0c62c970408ccefe29bb7}64.gs哥斯拉流量4.0gs.pcapngflag{0fffbfa87e5508955b397950502db0bd}65.冰蝎web流量webshell.pcapn
- Maven安装配置
欣慰的三叶草(● ̄(エ) ̄●)
软件安装mavenintellij-ideajava
Maven安装配置-笔记文章目录Maven安装配置-笔记一、Maven安装配置①:安装②:配置环境变量③:配置本地仓库④:配置阿里云私服⑤:IDEA配置Maven⑥:IDEA创建Maven项目⑦:IDEA导入Maven项目一、Maven安装配置①:安装网盘下载:链接:https://pan.baidu.com/s/1YzBPclsswT1aMRpnDgQqLA提取码:Coke第一步:Maven是一
- c语言 swtich写简单菜单输出各种图形
jmlinux
C语言c语言c++开发语言
/**写一个简单菜单输出各种图形*/#include//宏定义#defineLEN16voidanyKey(void);voidshowMenu(void);voidleftButton(void);voidleftTop(void);voidrightButton(void);voidrightTop(void);voidempty(void);intmain(void){intloop=1;c
- 关于GIS的一些见解,GIS数据(一)
秋名山大前端
三维可视化arcgis前端javascript
GIS数据(一)文章目录GIS数据(一)矢量数据与栅格数据矢量、栅格数据文件矢量数据文件栅格数据文件网上关于gis基础的知识很多了,小编在这里就不做复制粘贴了,可以先学习《前后端都要懂一点的GIS》文章中的内容https://www.yuque.com/datav/datav-cool/swteb8GIS(地理信息系统)数据在空间分析和地图制图中起着关键的作用。GIS数据通常分为矢量数据和栅格数据
- Linux环境下打开eclipse的文件出现闪退的解决办法
根号七.
eclipsejavahadoophttpintellijidea
在eclipse的安装目录下面找到eclipse.ini配置文件,在最后面加上下面一行行代码即可:-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false如果不行再加上其他三条代码-Dorg.eclipse.swt.browser.DefaultType=mozilla-Dorg.eclipse.swt.browser.UseWebKitGTK=true
- MIT6.S081 LAB00 Makefile分析
大树D
学习c语言硬件架构
XV6操作系统启动学习解析MakefileK=kernelU=userOBJS=\$K/entry.o\$K/start.o\$K/console.o\$K/printf.o\$K/uart.o\$K/kalloc.o\$K/spinlock.o\$K/string.o\$K/main.o\$K/vm.o\$K/proc.o\$K/swtch.o\$K/trampoline.o\$K/trap.o
- 【Skywalking】Docker部署(一次成功)
猿仁
Skywalking系列skywalking
目录开始语️在MySQL中创建swtest数据库️dockerrun部署️dockerrun部署ui查看结果,ip:8686结束语点击此处>>>前往Linux部署Skywalking9.3点击此处>>>前往Linux部署MySQL5.7开始语一位普通的程序员,慢慢在努力变强!️在MySQL中创建swtest数据库️dockerrun部署#JAVA_OPTS默认是2G#下载jar上传到这条命令同样的
- java:5-2switch基本语法
skylar0
javapython开发语言
文章目录1.switch1.1基本语法1.2流程图1.3快速入门1.4switch使用细节1.5练习1.6switch和if的比较【老韩b站视频笔记p114-p120】1.switch1.1基本语法【6点注意】switch关键字,表示swtich分支表达式(一定会有个值返回)case常量1:当表达式的值等于常量1,就执行语句块1break:表示退出swtich如果和case常量1匹配,就执行语句块
- C# Attribute特性实战(1):Swtich判断优化
龙中舞王
C#c#javascript数据库
文章目录前言简单Switch问题无参Swtich方法声明SwtichAttribute声明带有Swtich特性方法主方法结果有参Switch修改代码修改运行过程运行结果总结前言在经过前面两章内容的讲解,我们已经简单了解了如何使用特性和反射。我们这里解决一个简单的案例C#高级语法Attribute特性详解和类型,方法,变量附加特性讲解C#反射的终点:Type,MethodInfo,PropertyI
- 入门大概了解编程
Dark意识
c语言c++
程序的三种结构:顺序、条件分支和循环。顺序就是按照时间从上到下依次执行,条件分支是不同情况不同对待,循环是反复干同一件事。先讲条件分支语句,包括if语句和swtich,if()括号里填写条件,如果条件满足即为真,if后面的语句才会执行,否则跳过忽略。比如if(height>1.80)printf("男神身高");此句就是判断身高有没有大于1米8,如果大于才会打印。if还可配合else使用,比如小梁
- WebUI Case(1): www.swt-designer.com 首页
aobannie0463
开发工具javajavascriptViewUI
本系列文章主要记录在网上发现的一些优秀的WebUI设计.文章结构如下:(1)WebUICase编号(2)WebUICase名称,地址(3)截图(4)源代码(5)评价(可选)下面开始第一篇:(1)WebUICase编号:0001(2)WebUICase名称:www.swt-designer.com首页(3)截图(4)源代码页面:SWTDesignerThispageusesframes,butyou
- 实验3 vTPM相关
hansaes
可信计算技术可信计算技术
一、实验目的1.了解vTPM原理和相关知识;2.创建具备vTPM的虚拟机;3.加深对可信计算技术的理解。二、实验内容安装seabios,libtpms,swtpm,qemu‐tpm;启动vTPM;安装虚拟机。三、实验环境系统ubuntu20.04硬盘要至少40四、实验步骤1.安装相关依赖包;包括build‐essential,libtool,automake,libgmp‐dev,libnspr4
- 关于Freeswtich的mod模块编译的一个问题
shanghaimoon
开发语言c++
最近有一个freeswitch的mod模块需要从centos移植到debian去,原来以为会非常容易,结果却是一波三折,折腾了很久,好在结果是解决了,今天就是做下记录。其实当这个mod移植到debian去后,编译并没有问题,只是在执行的时候出现了如下的提示:很显然是函数找不到,但明明动态库里面有这个函数呢,通过一顿研究,发现了确切的原因:引用网上的说明如下:“Abi链接最常见的错误是std::st
- 基于Freeswitch实现的Volte网视频通知应用
shanghaimoon
FreeSwitchC++音视频ffmpeg
现在运营商的Volte网络已经很好的支持视频通话了,因此在原来的电话语音通知的基础上,可以更进一步实现视频的通知,让用户有更好的体验,本文就从技术角度,基于Freeswitch来实现此类应用(本文假设读者已对Freeswitch已有一定了解)。关键点之视频编解码:视频文件一般是采用H264编码的mp4文件,这对于Freeswitch来说是支持的,前提是Freeswtcih必须具备mod_av的编辑
- NXP实战笔记(三):S32K3xx基于RTD-SDK在S32DS上配置WDT配置
剑从东方起
NXP-S32K3使用记录NXPS32K3XXRTD-SWT
目录1、WDT概述2、SWT配置2.1、超时时间,复位方式的配置2.2、中断形式1、WDT概述SWT编程模型只允许32位(字)访问。以下任何尝试访问都是无效的:•非32位访问•写入只读寄存器•启用SWT时,将不正确的值写入SR•访问保留地址•未经允许的主机访问可以通过CR[RIA]控制SWT如何响应无效访问。SWT的寄存器基地址如下SWT_0baseaddress:4027_0000hSWT_1b
- swtich分支结构需要注意哪些事情
即兴小索奇
javajava
hello,我是小索奇。在Java中,switch分支结构用于根据一个表达式的值来选择执行不同的分支代码。以下是使用switch语句时需要注意的一些事情:表达式类型:switch语句的表达式必须是整数类型(如int、byte、short、char)或枚举类型。从Java7开始,也可以使用字符串类型。分支标签:switch语句中的每个分支都有一个标签(即case),用来匹配表达式的值。每个标签后面必
- SWTC基金会春联活动解释声明
sookie0517
亲爱的SWTC公链用户:您好!关于本次春联征集投票活动,针对社区用户的一些疑问,基金会非常重视,特发此公告予以解释。本次春联共征集74条,共收到360条投票,过滤IP后总投票数为202条。首先这个活动是一个创意收集的趣味小活动,因此在征集初期并没有设定严格的字数和格式限制,就是希望大家开脑洞,产生一些有趣的创意。每个创意的提供者都是我们重要的社区用户,因此,我们希望在这个小活动中尊重每个参与者的创
- 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的配置