- Python Web 框架篇:Flask、Django、FastAPI介绍及其核心技术
Switch616
PythonWebpython前端flaskfastapidjango开发语言后端
PythonWeb框架篇:Flask、Django、FastAPI介绍及其核心技术目录FlaskFlask核心概念(路由、视图函数、模板渲染)FlaskBlueprint模块化应用Flask扩展(Flask-SQLAlchemy、Flask-WTF、Flask-Migrate等)DjangoDjango项目架构DjangoORM及模型定义Django中间件Django信号机制DjangoForm和
- 12306项目学习笔记(框架篇Base)
Rainyocode
学习
首先学习的是基础框架ApplicationContextHolderApplicationContextHolder提供了一种静态方式来访问Spring容器中的Bean,适用于某些特定场景,如工具类和框架集成。在12306项目中由于我们引入了RocketMQ消息队列,这些库的对象通常不是Spring管理的,无法直接使用@Autowired注入,所以需要ApplicationContextHolde
- java3-5年面试题——框架篇
若久2023
javaspring
-----Spring------1.springIOC的理解springioc指的是控制反转,IOC容器负责实例化、定位、配置应用程序中的对象及建立这些对象间的依赖。交由Spring容器统一进行管理,从而实现松耦合注入对象:构造方法注入、stter方法注入、接口注入2.spring是如何通过xml配置或者注解配置生成实例对象的?简单实列:将对象放入SpringIOC容器中。1.配置文件方式:ap
- 高级java每日一道面试题-2024年8月27日-框架篇[SpringMVC篇]-Spring MVC 支持哪些视图技术?
java我跟你拼了
java每日一道面试题javaspringmvc框架篇SpringMVC篇后端视图解析器
如果有遗漏,评论区告诉我进行补充面试官:SpringMVC支持哪些视图技术?我回答:SpringMVC作为基于Spring框架的Web应用开发框架,其核心优势之一在于其支持多种视图技术,这使得开发者可以根据项目需求或个人偏好选择最适合的视图渲染方式。以下是SpringMVC支持的一些主要视图技术:JSP(JavaServerPages):JSP是JavaEE规范的一部分,是Java平台下最常用的视
- 高级java每日一道面试题-2024年8月24日-框架篇[Spring篇]-Spring Bean 的作用域之间有什么区别?
java我跟你拼了
java每日一道面试题java框架篇[Spring篇]Spring框架作用域单例原型
如果有遗漏,评论区告诉我进行补充面试官:SpringBean的作用域之间有什么区别?我回答:在Spring框架中,Bean的作用域(Scope)定义了Bean的生命周期和可见性。Spring提供了几种不同的作用域,每种作用域都适用于不同的场景和需求。以下是SpringBean中常见的作用域及其之间的区别:singleton(单例)描述:singleton是Spring默认的作用域。定义:当一个Be
- 高级java每日一道面试题-2024年8月22日-框架篇-IOC容器的一些具体的实现有哪些?
java我跟你拼了
java每日一道面试题IOC容器框架篇IOC容器实现SpringFrameworkGoogleGuiceWeldPicoContainer
如果有遗漏,评论区告诉我进行补充面试官:IOC容器的一些具体的实现有哪些?我回答:在Java中,控制反转(InversionofControl,IoC)是一种设计原则,用于减少代码间的耦合。IoC容器是实现IoC原则的一种工具,它负责管理对象之间的依赖关系,而不是由代码直接控制。在Java生态中,IoC容器主要通过依赖注入(DependencyInjection,DI)的方式来实现。以下是一些Ja
- web框架篇--基础
shitou987
测试开发djangopythonweb框架
1.什么是框架框架,即framework,特指为解决一个开放性问题而设计的具有一定约束性的支撑结构,使用框架可以帮你快速开发特定的系统,简单地说,就是你用别人搭建好的舞台来做表演。对于所有的Web应用,本质上其实就是一个socket服务端,用户的浏览器其实就是一个socket客户端1.浏览器发送一个http请求2.服务器接收到请求,生成一个html文档3.服务器把http文档作为http响应的bo
- 高频面试真题答案 -java后端 -java框架篇
qq_46529610
高频面试真题答案-java后端java面试后端
原贴:2022届秋招高频面试真题汇总,千题奉送!!!-后端篇_笔经面经_牛客网整理答案:SpringAOP的底层原理51SpringBean的生命周期31Spring中IOC的底层原理28Spring如何解决循环依赖22spring的动态代理模式14Spring使用了哪些设计模式?9springioc的设计思想和好处8简述为什么要使用Spring?(Spring优势)6简述Spring事务6spr
- Java框架篇-Heibernate(一)
TianTianBaby223
一:简述Hibernate框架是当今主流的Java持久层框架之一,简单易学,灵活,扩展性强,能够大大地简化程序的代码量,提高工作效率,受到广大开发人员喜爱.Heibernate是一个快放源代码的ORM(ObjectRelationalMapping,对象关系映射)它对JDBC进行了轻量级的对象封装,使得开发人员可以使用面向对象的编程思维来操作数据库二:解压包结构结构documentation:存放
- 京东技术负责人纯手写:小团队构建大网站中小研发团队架构实战
Java爱好者
本书结合作者近几年的工作经验,总结了一套可直接落地、基于开源、成本低、可快速搭建的中小研发团队架构实践方法。本书共5篇22章,开篇是本书的导读;架构篇是设计思想的提升,包括企业总体架构、应用架构设计、统--应用分层等;框架篇主讲中间件和工具的使用,包括消息队列、缓存、Job、集中式日志、应用监控和微服务等:公共应用篇是技术与业务的结合,包括单点登录和企业支付网关:进阶篇是从架构到管理,包括技改案例
- 知识点积累
格桑阿sir
云原生学习专栏go容器kubernetes云原生devops
云原生学习路线导航页(持续更新中)知识点积累本文主要记录日常学习中遇到的疑难知识点随着知识点积累内容变多,本文越来越长,不方便阅读,故将本文拆成多篇文章,目录如下本文不再更新,更多内容请按照下面的目录进行查看知识点积累系列(一)golang语言篇【持续更新】知识点积累系列(二)数据库篇【持续更新】知识点积累系列(三)golang框架篇【持续更新】知识点积累系列(四)Kubernetes篇【持续更新
- 知识点积累系列(三)golang框架篇【持续更新】
格桑阿sir
云原生学习专栏golang开发语言后端gin云原生devops
云原生学习路线导航页(持续更新中)本文是知识点积累系列文章的第三篇,记录日常学习中遇到的golang框架相关的知识点1、gin框架相关1.1.在gin中间件中直接return,相当于什么在Gin中间件中直接使用return语句,相当于提前结束当前中间件的执行,并将控制权返回给请求处理链的下一个中间件或处理函数。这意味着后续的中间件或处理函数将不会被执行。
- 【sylar】框架篇-Chapter13-http 模块
江湖人称菠萝包
【C++】服务器编程-实战linux服务器c++
站在巨人的肩膀上C++高性能分布式服务器框架从零开始重写sylarC++高性能分布式服务器框架概述对http协议的封装。http.hhttp定义结构体封装模块。一些方法描述和错误码定义是直接拷贝自以下地址:https://github.com/nodejs/http-parser/blob/main/http_parser.hHttpMethodhttp方法枚举类。利用了拷贝回来的宏定义。Http
- 【sylar】框架篇-Chapter1-搭建开发环境
江湖人称菠萝包
【C++】服务器编程-实战linux服务器c++
站在巨人的肩膀上C++高性能分布式服务器框架从零开始重写sylarC++高性能分布式服务器框架安装虚拟机-下载镜像-CentOS7.6-CentOS-7-x86_64-Minimal-1810.iso-一路next即可-安装后查看ip地址以便于连接ssh:$ipaddr切换root用户-输入su时候如果有鉴定故障,则$sudopasswdroot输入新的密码$su输入密码即可创建存放软件包的目录#
- JavaEE--框架篇(1)Spring
i18n486
javaspringiocaop
目录前言框架篇(1)SpringIOC实现原理自定义实现简单的IOCSpring中的IOCSpringIOC相关知识梳理***:Scope的取值范围以及各自的含义***:@Autowired注解的搜索规则是什么?AOP实现原理自定义实现简单的AOPSpring中的AOP***:切点,切面,前置通知、环绕通知等是什么?***:要想实现事务控制,为什么必须接管Dao实例以及数据库连接池实例?前言带着问
- Java框架篇面试题
过去日记
java面试题java开发语言
作者简介:过去日记,致力于Java、GoLang,Rust等多种编程语言,热爱技术,喜欢游戏的博主。本文收录于java面试题系列,大家有兴趣的可以看一看相关专栏Rust初阶教程、go语言基础系列、spring教程等,大家有兴趣的可以看一看Java并发编程系列,设计模式系列、goweb开发框架系列正在发展中,喜欢Java,GoLang,Rust,的朋友们可以关注一下哦!文章目录Spring框架中的单
- 微前端框架篇一,了解qiankun
Dormiveglia-flx
前端框架前端vuevue.js
微前端框架篇一,了解qiankun①前置知识补充Ⅰ什么是微前端?Ⅱ什么是JSCSS沙箱?Ⅲ什么是spa单页面应用?ⅣSystemJS与import-html-entryⅤ现有的微前端方案②了解single-spa微前端框架③了解qiankun框架①前置知识补充Ⅰ什么是微前端?微前端是一种将复杂单体应用拆分为多个小型独立前端应用,然后将这些小应用按需加载并集成到主应用的技术方案。每个子应用都有自己的
- 2024前端年末备战面试总结——框架篇(Vue)
聪明的竹子
前端面试vue.js
框架篇(Vue)本文是本人根据Vue官网上的内容或者网上一些其他朋友的文章以及自己的理解,整理归纳出来的一篇Vue方面的面试题及知识点,其中不免有许多漏掉的问题或是答案,发现错误的或者是有什么问题需要补充的朋友们,可以在评论区留言,大家虚心交流,一起进步。1.Vue是什么Vue是一款基于MVVM架构的渐进式框架,它主要用于构建单页面应用(spa),它的特点有声明式渲染、响应式两大点。(1)什么是M
- 【SpringBoot框架篇】32.基于注解+redis实现表单防重复提交
皓亮君
springBootspringbootredisjava
文章目录1.简介2.后端防表单重复提交设计实现2.1.引入依赖2.2.添加redis配置2.3.添加需要使用的工具类2.4.添加防重复提交注解2.5.使用Aop实现限流逻辑3.测试3.1.添加需要限流的接口3.2.模拟表单重复提交操作4.项目配套代码1.简介在一些表单提交操作的时候会存在用户多次点击button触发提交事件的场景(针对异步请求场景)。在客户端可以针对重复提交添加状态值判断,如下:1
- 【SpringBoot框架篇】30.使用sharding-jdbc实现读写分离和分库分表
皓亮君
springBootspringbootjava
文章目录1.简介2.引入依赖3.测试用到的类4.读写分类配置5.分库分表配置6.分库配置7.分表配置8.项目配套代码1.简介ShardingSphere-JDBC定位为轻量级Java框架,在Java的JDBC层提供的额外服务。它使用客户端直连数据库,以jar包形式提供服务,无需额外部署和依赖,可理解为增强版的JDBC驱动,完全兼容JDBC和各种ORM框架。适用于任何基于JDBC的ORM框架,如:J
- 【SpringBoot框架篇】31.基于分布式锁或xxx-job实现分布式任务调度
皓亮君
springBootspringboot分布式java
文章目录1.简介2.分布式锁实现2.1.引用依赖2.2.定义分布式锁注解2.3.配置切入点和获取锁释放锁逻辑2.4.测试任务3.使用分布式任务调度平台xxx-job3.1.下载源码并运行项目3.2.springBoot项目集成xxl-job4.项目配套代码1.简介定时任务使用场景一般为指定时间做数据统计,临时数据清理等等。单节点部署的服务一般是通过下面方式实现即可:在SpringBoot启动类上面
- 【SpringBoot框架篇】29.Jpa+vue实现单模型的低代码平台
皓亮君
springBootspringbootvue.js低代码
文章目录1.低代码平台概念2.最终效果图2.1.元数据模型页面2.2.通用数据页面3.代码实现3.1.后台3.2.前端4.项目配套代码1.低代码平台概念快速生成应用程序的开发平台低代码开发平台(LCDP)是无需编码(0代码)或通过少量代码就可以快速生成应用程序的开发平台。通过可视化进行应用程序开发的方法(参考可视编程语言),使具有不同经验水平的开发人员可以通过图形化的用户界面,使用拖拽组件和模型驱
- 【SpringBoot框架篇】28.使用JdbcTemplate操作数据库
皓亮君
springBootspringboot数据库java
文章目录1.引入依赖2.配置数据集连接信息3.操作数据库3.1.执行DDL语句3.2.添加数据3.3.查询数据3.4.修改数据3.5.删除数据4.项目配套代码1.引入依赖org.springframework.bootspring-boot-starter-jdbcmysqlmysql-connector-java8.0.112.配置数据集连接信息spring:datasource:usernam
- 【SpringBoot框架篇】24.集成FastDFS实现文件的分布式存储
皓亮君
springBootjavaspringbootrestful
文章目录1.简介2.添加配置2.1.在maven的pom.xml中添加fastDfs依赖包2.2.修改应用配置文件3.添加工具类4.测试接口编写5.测试5.1.上传图片5.2.下载图片5.3.删除图片6.项目配套代码1.简介如果应用是在集群部署,如果文件存储需要共享要通过linux的nfs服务来实现共享,或者把文件存储在分布式文件存储系统里面,例如FastDFS,minio,本章讲解集成FastD
- 【SpringBoot框架篇】25.集成Minio实现文件的分布式对象存储
皓亮君
springBootspringbootlinux后端分布式
文章目录1.简介2.安装使用2.1.下载二进制文件安装2.1.1单机部署2.1.2.集群安装2.1.2.1创建存储路径2.1.2.2.创建集群启动脚本2.1.2.3.分别启动4个节点2.2.使用docker安装3.实战3.1.引入依赖3.2.配置Minio连接信息3.3.编辑Minio配置类3.4编写Mino工具类3.5.测试接口4.测试4.1.上传文件4.2.下载文件4.3.删除文件5.设置桶里
- 【SpringBoot框架篇】26.集成spring-boot-starter-validation对接口参数校验
皓亮君
springBootspringbootspringjava
文章目录1.常规验证2.使用validation验证2.1.添加依赖2.2.常用注解2.3.在pojo类中添加需要使用的注解2.4.在接口入参处添加@Valid2.5.添加全局异常处理类返回校验错位提示信息3.项目配套代码1.常规验证以下面的登录接口为例,需要手动去验证参数是否存在,这种写法繁琐且不太优雅。@RestControllerpublicclassLoginController{@Req
- 【SpringBoot框架篇】23.集成smart-doc插件零侵入自动生成RESTful格式API文档
皓亮君
springBootrestfuljavaspringboot
文章目录1.简介2.配置准备2.1添加maven插件2.2创建配置文件2.3添加统一返回数据格式类3.接口实战3.1demo接口类3.2用户模型类3.3相关注释描述4.文档生成并查看4.1生成文档命令4.2查看5.集成torna统一管理和测试API文档5.1创建空间并找到3要素(appKey,secret,appToken)5.2在smart-doc.json中添加三要素5.3推送文档到torna
- 【SpringBoot框架篇】21.对springboot框架编译后的jar文件瘦身
皓亮君
springBootjavaspringbootjar
文章目录1.为什么要瘦身2.应用实战2.1.pom使用的依赖2.2.打包2.3.复制这些jar到项目根路径的release/lib目录下2.4.配置打包时忽略依赖2.5.启动jar的时候需要指定LOADER_PATH加载依赖jar3.项目配套代码1.为什么要瘦身通常SpringBoot程序在构建的时候会把依赖的jar包也到打包在内部,导致文件大小动辄50M、100M这样子,如今迭代发布时常有的事情
- 【SpringBoot框架篇】22.集成RocketMQ实现消息发布和订阅
皓亮君
springBootjavaspringboot
文章目录1.相关文章2..使用的依赖3.配置文件4.发送正常的消息4.1.消费者(订阅者)4.2.发布者(生产者)4.3.测试5.发布事务消息结合@Transactional一起使用5.1.消费者(订阅者)5.2.生产者(发布者)5.3.测试6.项目配套代码1.相关文章RocketMQ简介请看这篇文章:RocketMQ入门笔记RocketMQ安装请看这篇文章:使用docker安装RocketMQ2
- 【SpringBoot框架篇】35.kafka环境搭建和收发消息
皓亮君
springbootkafka后端
kafka环境搭建kafka依赖java环境,如果没有则需要安装jdkyuminstalljava-1.8.0-openjdk*-y1.下载安装kafkakafka3.0版本后默认自带了zookeeper,3.0之前的版本需要单独再安装zookeeper,我使用的最新的3.6.1版本。cd/usr/localwgethttps://dlcdn.apache.org/kafka/3.6.1/kafk
- ASM系列五 利用TreeApi 解析生成Class
lijingyao8206
ASM字节码动态生成ClassNodeTreeAPI
前面CoreApi的介绍部分基本涵盖了ASMCore包下面的主要API及功能,其中还有一部分关于MetaData的解析和生成就不再赘述。这篇开始介绍ASM另一部分主要的Api。TreeApi。这一部分源码是关联的asm-tree-5.0.4的版本。
在介绍前,先要知道一点, Tree工程的接口基本可以完
- 链表树——复合数据结构应用实例
bardo
数据结构树型结构表结构设计链表菜单排序
我们清楚:数据库设计中,表结构设计的好坏,直接影响程序的复杂度。所以,本文就无限级分类(目录)树与链表的复合在表设计中的应用进行探讨。当然,什么是树,什么是链表,这里不作介绍。有兴趣可以去看相关的教材。
需求简介:
经常遇到这样的需求,我们希望能将保存在数据库中的树结构能够按确定的顺序读出来。比如,多级菜单、组织结构、商品分类。更具体的,我们希望某个二级菜单在这一级别中就是第一个。虽然它是最后
- 为啥要用位运算代替取模呢
chenchao051
位运算哈希汇编
在hash中查找key的时候,经常会发现用&取代%,先看两段代码吧,
JDK6中的HashMap中的indexFor方法:
/**
* Returns index for hash code h.
*/
static int indexFor(int h, int length) {
- 最近的情况
麦田的设计者
生活感悟计划软考想
今天是2015年4月27号
整理一下最近的思绪以及要完成的任务
1、最近在驾校科目二练车,每周四天,练三周。其实做什么都要用心,追求合理的途径解决。为
- PHP去掉字符串中最后一个字符的方法
IT独行者
PHP字符串
今天在PHP项目开发中遇到一个需求,去掉字符串中的最后一个字符 原字符串1,2,3,4,5,6, 去掉最后一个字符",",最终结果为1,2,3,4,5,6 代码如下:
$str = "1,2,3,4,5,6,";
$newstr = substr($str,0,strlen($str)-1);
echo $newstr;
- hadoop在linux上单机安装过程
_wy_
linuxhadoop
1、安装JDK
jdk版本最好是1.6以上,可以使用执行命令java -version查看当前JAVA版本号,如果报命令不存在或版本比较低,则需要安装一个高版本的JDK,并在/etc/profile的文件末尾,根据本机JDK实际的安装位置加上以下几行:
export JAVA_HOME=/usr/java/jdk1.7.0_25  
- JAVA进阶----分布式事务的一种简单处理方法
无量
多系统交互分布式事务
每个方法都是原子操作:
提供第三方服务的系统,要同时提供执行方法和对应的回滚方法
A系统调用B,C,D系统完成分布式事务
=========执行开始========
A.aa();
try {
B.bb();
} catch(Exception e) {
A.rollbackAa();
}
try {
C.cc();
} catch(Excep
- 安墨移动广 告:移动DSP厚积薄发 引领未来广 告业发展命脉
矮蛋蛋
hadoop互联网
“谁掌握了强大的DSP技术,谁将引领未来的广 告行业发展命脉。”2014年,移动广 告行业的热点非移动DSP莫属。各个圈子都在纷纷谈论,认为移动DSP是行业突破点,一时间许多移动广 告联盟风起云涌,竞相推出专属移动DSP产品。
到底什么是移动DSP呢?
DSP(Demand-SidePlatform),就是需求方平台,为解决广 告主投放的各种需求,真正实现人群定位的精准广
- myelipse设置
alafqq
IP
在一个项目的完整的生命周期中,其维护费用,往往是其开发费用的数倍。因此项目的可维护性、可复用性是衡量一个项目好坏的关键。而注释则是可维护性中必不可少的一环。
注释模板导入步骤
安装方法:
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Code-->Code
- java数组
百合不是茶
java数组
java数组的 声明 创建 初始化; java支持C语言
数组中的每个数都有唯一的一个下标
一维数组的定义 声明: int[] a = new int[3];声明数组中有三个数int[3]
int[] a 中有三个数,下标从0开始,可以同过for来遍历数组中的数
- javascript读取表单数据
bijian1013
JavaScript
利用javascript读取表单数据,可以利用以下三种方法获取:
1、通过表单ID属性:var a = document.getElementByIdx_x_x("id");
2、通过表单名称属性:var b = document.getElementsByName("name");
3、直接通过表单名字获取:var c = form.content.
- 探索JUnit4扩展:使用Theory
bijian1013
javaJUnitTheory
理论机制(Theory)
一.为什么要引用理论机制(Theory)
当今软件开发中,测试驱动开发(TDD — Test-driven development)越发流行。为什么 TDD 会如此流行呢?因为它确实拥有很多优点,它允许开发人员通过简单的例子来指定和表明他们代码的行为意图。
TDD 的优点:
&nb
- [Spring Data Mongo一]Spring Mongo Template操作MongoDB
bit1129
template
什么是Spring Data Mongo
Spring Data MongoDB项目对访问MongoDB的Java客户端API进行了封装,这种封装类似于Spring封装Hibernate和JDBC而提供的HibernateTemplate和JDBCTemplate,主要能力包括
1. 封装客户端跟MongoDB的链接管理
2. 文档-对象映射,通过注解:@Document(collectio
- 【Kafka八】Zookeeper上关于Kafka的配置信息
bit1129
zookeeper
问题:
1. Kafka的哪些信息记录在Zookeeper中 2. Consumer Group消费的每个Partition的Offset信息存放在什么位置
3. Topic的每个Partition存放在哪个Broker上的信息存放在哪里
4. Producer跟Zookeeper究竟有没有关系?没有关系!!!
//consumers、config、brokers、cont
- java OOM内存异常的四种类型及异常与解决方案
ronin47
java OOM 内存异常
OOM异常的四种类型:
一: StackOverflowError :通常因为递归函数引起(死递归,递归太深)。-Xss 128k 一般够用。
二: out Of memory: PermGen Space:通常是动态类大多,比如web 服务器自动更新部署时引起。-Xmx
- java-实现链表反转-递归和非递归实现
bylijinnan
java
20120422更新:
对链表中部分节点进行反转操作,这些节点相隔k个:
0->1->2->3->4->5->6->7->8->9
k=2
8->1->6->3->4->5->2->7->0->9
注意1 3 5 7 9 位置是不变的。
解法:
将链表拆成两部分:
a.0-&
- Netty源码学习-DelimiterBasedFrameDecoder
bylijinnan
javanetty
看DelimiterBasedFrameDecoder的API,有举例:
接收到的ChannelBuffer如下:
+--------------+
| ABC\nDEF\r\n |
+--------------+
经过DelimiterBasedFrameDecoder(Delimiters.lineDelimiter())之后,得到:
+-----+----
- linux的一些命令 -查看cc攻击-网口ip统计等
hotsunshine
linux
Linux判断CC攻击命令详解
2011年12月23日 ⁄ 安全 ⁄ 暂无评论
查看所有80端口的连接数
netstat -nat|grep -i '80'|wc -l
对连接的IP按连接数量进行排序
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
查看TCP连接状态
n
- Spring获取SessionFactory
ctrain
sessionFactory
String sql = "select sysdate from dual";
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
String[] names = wac.getBeanDefinitionNames();
for(int i=0; i&
- Hive几种导出数据方式
daizj
hive数据导出
Hive几种导出数据方式
1.拷贝文件
如果数据文件恰好是用户需要的格式,那么只需要拷贝文件或文件夹就可以。
hadoop fs –cp source_path target_path
2.导出到本地文件系统
--不能使用insert into local directory来导出数据,会报错
--只能使用
- 编程之美
dcj3sjt126com
编程PHP重构
我个人的 PHP 编程经验中,递归调用常常与静态变量使用。静态变量的含义可以参考 PHP 手册。希望下面的代码,会更有利于对递归以及静态变量的理解
header("Content-type: text/plain");
function static_function () {
static $i = 0;
if ($i++ < 1
- Android保存用户名和密码
dcj3sjt126com
android
转自:http://www.2cto.com/kf/201401/272336.html
我们不管在开发一个项目或者使用别人的项目,都有用户登录功能,为了让用户的体验效果更好,我们通常会做一个功能,叫做保存用户,这样做的目地就是为了让用户下一次再使用该程序不会重新输入用户名和密码,这里我使用3种方式来存储用户名和密码
1、通过普通 的txt文本存储
2、通过properties属性文件进行存
- Oracle 复习笔记之同义词
eksliang
Oracle 同义词Oracle synonym
转载请出自出处:http://eksliang.iteye.com/blog/2098861
1.什么是同义词
同义词是现有模式对象的一个别名。
概念性的东西,什么是模式呢?创建一个用户,就相应的创建了 一个模式。模式是指数据库对象,是对用户所创建的数据对象的总称。模式对象包括表、视图、索引、同义词、序列、过
- Ajax案例
gongmeitao
Ajaxjsp
数据库采用Sql Server2005
项目名称为:Ajax_Demo
1.com.demo.conn包
package com.demo.conn;
import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;
//获取数据库连接的类public class DBConnec
- ASP.NET中Request.RawUrl、Request.Url的区别
hvt
.netWebC#asp.nethovertree
如果访问的地址是:http://h.keleyi.com/guestbook/addmessage.aspx?key=hovertree%3C&n=myslider#zonemenu那么Request.Url.ToString() 的值是:http://h.keleyi.com/guestbook/addmessage.aspx?key=hovertree<&
- SVG 教程 (七)SVG 实例,SVG 参考手册
天梯梦
svg
SVG 实例 在线实例
下面的例子是把SVG代码直接嵌入到HTML代码中。
谷歌Chrome,火狐,Internet Explorer9,和Safari都支持。
注意:下面的例子将不会在Opera运行,即使Opera支持SVG - 它也不支持SVG在HTML代码中直接使用。 SVG 实例
SVG基本形状
一个圆
矩形
不透明矩形
一个矩形不透明2
一个带圆角矩
- 事务管理
luyulong
javaspring编程事务
事物管理
spring事物的好处
为不同的事物API提供了一致的编程模型
支持声明式事务管理
提供比大多数事务API更简单更易于使用的编程式事务管理API
整合spring的各种数据访问抽象
TransactionDefinition
定义了事务策略
int getIsolationLevel()得到当前事务的隔离级别
READ_COMMITTED
- 基础数据结构和算法十一:Red-black binary search tree
sunwinner
AlgorithmRed-black
The insertion algorithm for 2-3 trees just described is not difficult to understand; now, we will see that it is also not difficult to implement. We will consider a simple representation known
- centos同步时间
stunizhengjia
linux集群同步时间
做了集群,时间的同步就显得非常必要了。 以下是查到的如何做时间同步。 在CentOS 5不再区分客户端和服务器,只要配置了NTP,它就会提供NTP服务。 1)确认已经ntp程序包: # yum install ntp 2)配置时间源(默认就行,不需要修改) # vi /etc/ntp.conf server pool.ntp.o
- ITeye 9月技术图书有奖试读获奖名单公布
ITeye管理员
ITeye
ITeye携手博文视点举办的9月技术图书有奖试读活动已圆满结束,非常感谢广大用户对本次活动的关注与参与。 9月试读活动回顾:http://webmaster.iteye.com/blog/2118112本次技术图书试读活动的优秀奖获奖名单及相应作品如下(优秀文章有很多,但名额有限,没获奖并不代表不优秀):
《NFC:Arduino、Andro