- Java – 数组Copy的几种方式
hooc
javaweb
目前在Java中数据拷贝提供了如下方式:cloneSystem.arraycopyArrays.copyOfArrays.copyOfRange1、clone方法clone方法是从Object类继承过来的,基本数据类型(String,boolean,char,byte,short,float,double,long)都可以直接使用clone方法进行克隆,注意String类型是因为其值不可变所以才可
- Java数组:针对数组(Array)的各种操作
江南又旧雨
Java
创建一维数组int[]number=newint[]{1,2,3,5,8};int[]number={1,2,3,5,8};Java复制数组的四种方法:arraycopy()方法、clone()方法、copyOf()和copyOfRange()方法1.使用copyOf()方法对数组进行复制Arrays类的copyOf()方法的语法格式如下:Arrays.copyOf(dataType[]srcAr
- java数组拷贝的方法
千锋IT教育
javajava数组
小千在给大家讲解数组扩容时,涉及到了数组中数据元素的拷贝复制。那么除了上面的拷贝方式之外,数组还有哪些拷贝方式呢?1.拷贝方式在Java中,数组的拷贝主要有三种实现方式:1.通过循环语句,将原数组中的各个元素拷贝到新数组中(即数组扩容案例中使用的方法);2.System类提供的数组拷贝方法;3.Arrays类提供的数组拷贝方法。接下来小千就设计几个案例,来给大家展示这几种方式都是怎么进行数组拷贝的
- Arrays.copyOf方法
前端交互仔
java
Arrays.copyOf(array,to_index);Arrays.fill(array,from_index,to_index);第一个方法其实就是返回一个数组,而这个数组就等于数组array的前to_index个数,也就是array[0]~array[to_index-1]。而第二种方法也只是加了一个初始的位置,即返回一个数组等于array[from_index]~array[to_in
- Java中四种常用的数组复制的方法copyOf(),arraycop(),clone()和copyOfRange()的使用与区别
方九九
java知识点总结java
所谓复制数组,是指将一个数组中的元素在另一个数组中进行复制。本文主要介绍关于Java里面的数组复制(拷贝)的几种方式和用法。在Java中实现数组复制分别有以下4种方法:1.Arrays类的copyOf()方法2.Arrays类的copyOfRange()方法3.System类的arraycopy()方法4.Object类的clone()方法下面来详细介绍这4种方法的使用。使用copyOf()方法和
- JavaScript 基础 - 第13天
+码农快讯+
JavaScript学习笔记javascript开发语言ecmascript
文章目录JavaScript基础-第13天深入对象创建对象三种方式构造函数new实例化过程实例成员&静态成员实例成员静态成员一切皆对象内置构造函数ObjectArrayStringNumberJavaScript基础-第13天了解面向对象编程的基础概念及构造函数的作用,体会JavaScript一切皆对象的语言特征,掌握常见的对象属性和方法的使用。深入对象内置构造函数综合案例深入对象了解面向对象的基
- Eclipse如何给main方法传值
马斯洛金字塔下的小灵猴儿
JAVA工程师相关eclipsemain方法传参
importjava.util.Arrays;/***这是一个测试类,用来研究main方法的传值问题*@authorHHB*/publicclassTest{/***这是类的主方法,可以用来接受用户的输入,并将输入数据保存到一个String类型的数组里*@paramargs*/publicstaticvoidmain(String[]args){System.out.println(Arrays.
- Java中取数组中最大值
hhXx_琉璃
java开发语言
在Java中,你可以通过循环遍历数组来找到数组中的最大值。你也可以使用Java标准库中的Arrays类的stream()方法和max()方法来实现。以下是两种方法的示例代码:publicclassMain{publicstaticvoidmain(String[]args){int[]arr={10,5,7,3,15};intmax=arr[0];for(inti=1;imax){max=arr[
- 2021-03-24
江晚cno
packageeduxcdq;importjava.util.Arrays;importjava.util.Scanner;publicclassC032405{publicstaticvoidmain(String[]args){System.out.println("请输入你要排序的数组的长度");Scannerscanner=newScanner(System.in);intlength=s
- JAVA数组元素的遍历_Java数组元素的遍历
知更社区
JAVA数组元素的遍历
Java数组元素的遍历packagecom.wkcto.chapter03.demo01;importjava.util.Arrays;/***数组的定义,元素的访问与遍历*@author蛙课网**/publicclassTest01{publicstaticvoidmain(String[]args){//1)定义一个数组,存储5个int类型数据int[]data=newint[5];//定义数
- java怎么将数组转为字符串
lizi88888
java开发语言算法
在Java中,可以使用`Arrays.toString()`方法将数组转换为字符串。这个方法接受一个数组作为参数,并返回一个字符串表示该数组的内容。以下是一个示例代码:```javaimportjava.util.Arrays;publicclassArrayToStringExample{publicstaticvoidmain(String[]args){int[]arr={1,2,3,4,5
- stream流式编程
chenlaida
JAVA8java
文章目录stream流式编程常用的stream三种创建方式Stream的终止操作Collectors具体方法常用方法filtermapgroupBy求和交集,并集,差集flatMappeekdistinctlimitsortedmatch匹配find寻找元素计数和极值stream流式编程常用的stream三种创建方式集合Collection.stream()静态方法Streamof数组Arrays
- 东大树莓数据结构S2Array代码
文崎不摘口罩
数据结构c++
代码从课件上扒下来的,修改增加了部分代码,学习备考使用。Array.cpp#includeusingnamespacestd;templateclassArray{T*elements;intArraySize;voidgetArray();public:Array(intSize=DefaultSize);Array(constArray&x);~Array(){delete[]elements
- Java——踩坑Arrays.asList()
你知道烟火吗
javajava开发语言
坑1:不能直接使用Arrsys.asList()来转换基本类型数据publicstaticvoidtest1(){//1、不能直接使用asList来转换基本类型数组int[]arr={1,2,3};Listlist=Arrays.asList(arr);System.out.printf("list:%ssize:%sclass:%s",list,list.size(),list.get(0).g
- 测试驱动技术(TDD)系列之5:从excel中读取测试驱动数据
测试开发Kevin
测试框架中参数化的一般形式在Junit4和TestNG框架中实现参数化的形式几乎是一致的。Junit4定义参数化数据,代码如下:publicstaticCollectionprepareData(){Object[][]object={{1,2,3},{0,2,2},{0,3,3}};returnArrays.asList(object);}TestNG定义参数化数据,代码如下:@DataProv
- 【Python报错】成功解决ValueError: all input arrays must have the same shap
云天徽上
python运行报错解决记录python开发语言pandasnumpy机器学习
【Python报错】成功解决ValueError:allinputarraysmusthavethesameshape在Python编程中,尤其是在使用NumPy、Pandas或进行机器学习、深度学习等数据处理和模型训练时,经常会遇到各种错误。其中,ValueError:allinputarraysmusthavethesameshape是一个常见的错误,它通常发生在你尝试对形状不一致的数组进行数
- class _ContiguousArrayStorage deallocated with non-zero retain count
humiaor
Swift数组多线程安全Swift数组iOS多线程安全
Xcode报错:Object0x11c614000ofclass_ContiguousArrayStoragedeallocatedwithnon-zeroretaincount2.Thisobject'sdeinit,orsomethingcalledfromit,mayhavecreatedastrongreferencetoselfwhichoutliveddeinit,resultingi
- java导出excel(带图片)
陈一一同学
java
先看一下导出效果,controller表头数据一定要放在最前面Listhead=Arrays.asList("姓名","年龄","性别","证件类别","证件号","联系电话","地区","详细地址","报名时间","所属分组","年度","参赛类别1","作品名称1","作品1","参赛类别2","作品名称2","作品2");List>sheetDataList=newArrayListlist
- day-48 一个小组的最大实力值
菜-卷
算法
思路想把所有非零数相乘,再统计负数的个数,如果负数为奇数个,则把乘机除以最大的那个负数即为答案,如果为偶数个,那么乘机即为答案解题过程但要考虑特殊情况:1.只有零和一个负数,返回零2.全为零,返回零CodeclassSolution{publiclongmaxStrength(int[]nums){longans=1;intnum=0;Arrays.sort(nums);intlen=nums.l
- [ABC369C] Count Arithmetic Subarrays
浚浚的二师兄
算法c++
首先看了下题意大致题意就是让你在长度为的序列找出所有的等差数列。-----------------------------------------------------------------------------------------我是分界线我的思路了,就是先从2开始计算等差数列,从3开始判断,如果是等差数列的话就继续累加,如果不是判断它是否是第一个等差数列,是就直接,如果不是就减1去除
- Java基础知识(部分、随手记)
木木ᶻ
java
目录基础知识:基本框架:注释:关键字:字面量:(数据类型)变量:注意事项:计算机的存储规则:基础语法:标识符:键盘录入:IDEA项目结构的介绍算数运算符:判断和循环顺序结构分支结构if语句switch语句格式while循环循环结构数组数组的静态初始化数组的地址值和元素访问数组元素访问数组的动态初始化二维数组二维数组的动态初始化Arrays类方法方法的定义带返回值方法的调用注意事项:方法的重载:面向
- 获取数组最大值的4种方式
她说她一如既往的爱我
算法数据结构
1循环对比循环对比的核心是定义一个最大值,然后循环对比每一个元素,如果元素的值大于最大值就将最大值更新为此元素的值,再进行下一次比较,直到循环结束就能得到最大值intmax=arr[0];for(inti=0;imax){max=arr[i];}}2Arrays.sort方法使用Arrays.sort方法可以将数组从小到大进行排序,排序完成之后,取最后一位的值就是最大值Arrays.sort(ar
- c++ 定义数组
黄卷青灯77
c++开发语言数组
在C++中,数组是一种用于存储多个相同类型数据的容器。定义数组时,你需要指定数组的类型和大小。以下是C++中定义数组的基本方法和一些示例。1.定义一维数组要定义一个一维数组,可以使用以下语法:DataTypearrayName[arraySize];示例#includeintmain(){//定义一个整型数组,大小为5intnumbers[5];//给数组元素赋值numbers[0]=10;num
- Android 下拉列表框AppCompatSpinner
yijiaodingqiankun
Android移动android
//获取当前数据Stringtime=spn_spinner.getSelectedItem().toString();//监听spn_spinner.setOnItemSelectedListener(this);在values文件夹创建arrays.xml文件,下面的1个月,2个月等替换成你的内容,还有name值也替换成你起的名字1个月2个月3个月
- Java算法之TimSort
持续输出...
#Java算法算法java排序算法
TimSort简介TimSort是一种高效的排序算法,由TimPeters于2002年设计,主要特点是结合了归并排序(MergeSort)和插入排序(InsertionSort)的优点。这种算法在很多编程语言的默认排序函数中得到应用,如Python的sort()和Java的Arrays.sort()。算法原理TimSort的工作原理如下:分解:将待排序数组分解为小的有序序列,每个序列长度为minr
- timsort java_Java TimSort算法 源码 笔记
汪汪汪汪妄想症
timsortjava
本来准备看Java容器源码的。但是看到一开始发现Arrays这个类我不是很熟,就顺便把Arrays这个类给看了。Arrays类没有什么架构与难点,但Arrays涉及到的两个排序算法似乎很有意思。那顺便把TimSort算法和双指针快速排序也研究一下吧。首先强调一下,这是个稳定的排序算法看过代码之后觉得这个算法没有想象的那么难。逻辑很清晰,整个算法最大的特点就是充分利用数组中已经存在顺序。在归并的过程
- Java 中Lambada表达式中双冒号 ::使用总结
何以解忧,唯有..
java开发语言
一、前言双冒号运算操作符是类方法的句柄,lambda表达式的一种简写表达式:person->person.getName();可以替换成:Person::getName表达式:()->newHashMaplist=Arrays.asList("a","b","c");//静态方法引用ClassName::methodNamelist.forEach(Colon::print);//上一行等价于//
- RAID磁盘阵列
一个小运维
需要服务器硬件RAID卡•廉价冗余磁盘阵列–RedundantArraysofInexpensiveDisks–通过硬件/软件技术,将多个较小/低速的磁盘整合成一个大磁盘–阵列的价值:提升I/O效率、硬件级别的数据冗余–不同RAID级别的功能、特性各不相同image.png•RAID0,条带模式–同一个文档分散存放在不同磁盘–并行写入以提高效率–至少需要两块磁盘组成,磁盘利用率100%•RAID1
- Arrays类、Random类和包装类(8大基本数据类型)的用法
我的K8409
java算法数据结构
1、Arrays:是java提供专门针对数据做操作的工具类,该类没有构造方法,且方法都是静态的成员方法:publicstaticStringtoString(int[]a)将任意一个数组中的所有元素以字符串的形式拼接返回publicstaticvoidsort(int[]a)冒泡排序publicstaticintbinarySearch(int[]a,intkey)二分查找元素,如果要保证结果正确
- java数组转换为集合-Arrays.asList使用
试着奔跑的菜鸟
java踩坑java踩坑
在日常开发中,经常遇到需要将动态增加数组数据的情况,但是java中的数组的定义如下:Java语言中提供的数组是用来存储固定大小的同类型元素。(菜鸟教程)也就是说,数组在声明时就是固定长度,不可增加或者减少它的长度的。那么当我们的确需要动态修改长度应该如何去处理,这时候就应该用到List集合了。将数组转换为集合有以下两种方式1.声明一个List集合,遍历数组,将数组中的每一个元素添加到List集合中
- 集合框架
天子之骄
java数据结构集合框架
集合框架
集合框架可以理解为一个容器,该容器主要指映射(map)、集合(set)、数组(array)和列表(list)等抽象数据结构。
从本质上来说,Java集合框架的主要组成是用来操作对象的接口。不同接口描述不同的数据类型。
简单介绍:
Collection接口是最基本的接口,它定义了List和Set,List又定义了LinkLi
- Table Driven(表驱动)方法实例
bijian1013
javaenumTable Driven表驱动
实例一:
/**
* 驾驶人年龄段
* 保险行业,会对驾驶人的年龄做年龄段的区分判断
* 驾驶人年龄段:01-[18,25);02-[25,30);03-[30-35);04-[35,40);05-[40,45);06-[45,50);07-[50-55);08-[55,+∞)
*/
public class AgePeriodTest {
//if...el
- Jquery 总结
cuishikuan
javajqueryAjaxWebjquery方法
1.$.trim方法用于移除字符串头部和尾部多余的空格。如:$.trim(' Hello ') // Hello2.$.contains方法返回一个布尔值,表示某个DOM元素(第二个参数)是否为另一个DOM元素(第一个参数)的下级元素。如:$.contains(document.documentElement, document.body); 3.$
- 面向对象概念的提出
麦田的设计者
java面向对象面向过程
面向对象中,一切都是由对象展开的,组织代码,封装数据。
在台湾面向对象被翻译为了面向物件编程,这充分说明了,这种编程强调实体。
下面就结合编程语言的发展史,聊一聊面向过程和面向对象。
c语言由贝尔实
- linux网口绑定
被触发
linux
刚在一台IBM Xserver服务器上装了RedHat Linux Enterprise AS 4,为了提高网络的可靠性配置双网卡绑定。
一、环境描述
我的RedHat Linux Enterprise AS 4安装双口的Intel千兆网卡,通过ifconfig -a命令看到eth0和eth1两张网卡。
二、双网卡绑定步骤:
2.1 修改/etc/sysconfig/network
- XML基础语法
肆无忌惮_
xml
一、什么是XML?
XML全称是Extensible Markup Language,可扩展标记语言。很类似HTML。XML的目的是传输数据而非显示数据。XML的标签没有被预定义,你需要自行定义标签。XML被设计为具有自我描述性。是W3C的推荐标准。
二、为什么学习XML?
用来解决程序间数据传输的格式问题
做配置文件
充当小型数据库
三、XML与HTM
- 为网页添加自己喜欢的字体
知了ing
字体 秒表 css
@font-face {
font-family: miaobiao;//定义字体名字
font-style: normal;
font-weight: 400;
src: url('font/DS-DIGI-e.eot');//字体文件
}
使用:
<label style="font-size:18px;font-famil
- redis范围查询应用-查找IP所在城市
矮蛋蛋
redis
原文地址:
http://www.tuicool.com/articles/BrURbqV
需求
根据IP找到对应的城市
原来的解决方案
oracle表(ip_country):
查询IP对应的城市:
1.把a.b.c.d这样格式的IP转为一个数字,例如为把210.21.224.34转为3524648994
2. select city from ip_
- 输入两个整数, 计算百分比
alleni123
java
public static String getPercent(int x, int total){
double result=(x*1.0)/(total*1.0);
System.out.println(result);
DecimalFormat df1=new DecimalFormat("0.0000%");
- 百合——————>怎么学习计算机语言
百合不是茶
java 移动开发
对于一个从没有接触过计算机语言的人来说,一上来就学面向对象,就算是心里上面接受的了,灵魂我觉得也应该是跟不上的,学不好是很正常的现象,计算机语言老师讲的再多,你在课堂上面跟着老师听的再多,我觉得你应该还是学不会的,最主要的原因是你根本没有想过该怎么来学习计算机编程语言,记得大一的时候金山网络公司在湖大招聘我们学校一个才来大学几天的被金山网络录取,一个刚到大学的就能够去和
- linux下tomcat开机自启动
bijian1013
tomcat
方法一:
修改Tomcat/bin/startup.sh 为:
export JAVA_HOME=/home/java1.6.0_27
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_H
- spring aop实例
bijian1013
javaspringAOP
1.AdviceMethods.java
package com.bijian.study.spring.aop.schema;
public class AdviceMethods {
public void preGreeting() {
System.out.println("--how are you!--");
}
}
2.beans.x
- [Gson八]GsonBuilder序列化和反序列化选项enableComplexMapKeySerialization
bit1129
serialization
enableComplexMapKeySerialization配置项的含义
Gson在序列化Map时,默认情况下,是调用Key的toString方法得到它的JSON字符串的Key,对于简单类型和字符串类型,这没有问题,但是对于复杂数据对象,如果对象没有覆写toString方法,那么默认的toString方法将得到这个对象的Hash地址。
GsonBuilder用于
- 【Spark九十一】Spark Streaming整合Kafka一些值得关注的问题
bit1129
Stream
包括Spark Streaming在内的实时计算数据可靠性指的是三种级别:
1. At most once,数据最多只能接受一次,有可能接收不到
2. At least once, 数据至少接受一次,有可能重复接收
3. Exactly once 数据保证被处理并且只被处理一次,
具体的多读几遍http://spark.apache.org/docs/lates
- shell脚本批量检测端口是否被占用脚本
ronin47
#!/bin/bash
cat ports |while read line
do#nc -z -w 10 $line
nc -z -w 2 $line 58422>/dev/null2>&1if[ $?-eq 0]then
echo $line:ok
else
echo $line:fail
fi
done
这里的ports 既可以是文件
- java-2.设计包含min函数的栈
bylijinnan
java
具体思路参见:http://zhedahht.blog.163.com/blog/static/25411174200712895228171/
import java.util.ArrayList;
import java.util.List;
public class MinStack {
//maybe we can use origin array rathe
- Netty源码学习-ChannelHandler
bylijinnan
javanetty
一般来说,“有状态”的ChannelHandler不应该是“共享”的,“无状态”的ChannelHandler则可“共享”
例如ObjectEncoder是“共享”的, 但 ObjectDecoder 不是
因为每一次调用decode方法时,可能数据未接收完全(incomplete),
它与上一次decode时接收到的数据“累计”起来才有可能是完整的数据,是“有状态”的
p
- java生成随机数
cngolon
java
方法一:
/**
* 生成随机数
* @author
[email protected]
* @return
*/
public synchronized static String getChargeSequenceNum(String pre){
StringBuffer sequenceNum = new StringBuffer();
Date dateTime = new D
- POI读写海量数据
ctrain
海量数据
import java.io.FileOutputStream;
import java.io.OutputStream;
import org.apache.poi.xssf.streaming.SXSSFRow;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming
- mysql 日期格式化date_format详细使用
daizj
mysqldate_format日期格式转换日期格式化
日期转换函数的详细使用说明
DATE_FORMAT(date,format) Formats the date value according to the format string. The following specifiers may be used in the format string. The&n
- 一个程序员分享8年的开发经验
dcj3sjt126com
程序员
在中国有很多人都认为IT行为是吃青春饭的,如果过了30岁就很难有机会再发展下去!其实现实并不是这样子的,在下从事.NET及JAVA方面的开发的也有8年的时间了,在这里在下想凭借自己的亲身经历,与大家一起探讨一下。
明确入行的目的
很多人干IT这一行都冲着“收入高”这一点的,因为只要学会一点HTML, DIV+CSS,要做一个页面开发人员并不是一件难事,而且做一个页面开发人员更容
- android欢迎界面淡入淡出效果
dcj3sjt126com
android
很多Android应用一开始都会有一个欢迎界面,淡入淡出效果也是用得非常多的,下面来实现一下。
主要代码如下:
package com.myaibang.activity;
import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.os.CountDown
- linux 复习笔记之常见压缩命令
eksliang
tar解压linux系统常见压缩命令linux压缩命令tar压缩
转载请出自出处:http://eksliang.iteye.com/blog/2109693
linux中常见压缩文件的拓展名
*.gz gzip程序压缩的文件
*.bz2 bzip程序压缩的文件
*.tar tar程序打包的数据,没有经过压缩
*.tar.gz tar程序打包后,并经过gzip程序压缩
*.tar.bz2 tar程序打包后,并经过bzip程序压缩
*.zi
- Android 应用程序发送shell命令
gqdy365
android
项目中需要直接在APP中通过发送shell指令来控制lcd灯,其实按理说应该是方案公司在调好lcd灯驱动之后直接通过service送接口上来给APP,APP调用就可以控制了,这是正规流程,但我们项目的方案商用的mtk方案,方案公司又没人会改,只调好了驱动,让应用程序自己实现灯的控制,这不蛋疼嘛!!!!
发就发吧!
一、关于shell指令:
我们知道,shell指令是Linux里面带的
- java 无损读取文本文件
hw1287789687
读取文件无损读取读取文本文件charset
java 如何无损读取文本文件呢?
以下是有损的
@Deprecated
public static String getFullContent(File file, String charset) {
BufferedReader reader = null;
if (!file.exists()) {
System.out.println("getFull
- Firebase 相关文章索引
justjavac
firebase
Awesome Firebase
最近谷歌收购Firebase的新闻又将Firebase拉入了人们的视野,于是我做了这个 github 项目。
Firebase 是一个数据同步的云服务,不同于 Dropbox 的「文件」,Firebase 同步的是「数据」,服务对象是网站开发者,帮助他们开发具有「实时」(Real-Time)特性的应用。
开发者只需引用一个 API 库文件就可以使用标准 RE
- C++学习重点
lx.asymmetric
C++笔记
1.c++面向对象的三个特性:封装性,继承性以及多态性。
2.标识符的命名规则:由字母和下划线开头,同时由字母、数字或下划线组成;不能与系统关键字重名。
3.c++语言常量包括整型常量、浮点型常量、布尔常量、字符型常量和字符串性常量。
4.运算符按其功能开以分为六类:算术运算符、位运算符、关系运算符、逻辑运算符、赋值运算符和条件运算符。
&n
- java bean和xml相互转换
q821424508
javabeanxmlxml和bean转换java bean和xml转换
这几天在做微信公众号
做的过程中想找个java bean转xml的工具,找了几个用着不知道是配置不好还是怎么回事,都会有一些问题,
然后脑子一热谢了一个javabean和xml的转换的工具里,自己用着还行,虽然有一些约束吧 ,
还是贴出来记录一下
顺便你提一下下,这个转换工具支持属性为集合、数组和非基本属性的对象。
packag
- C 语言初级 位运算
1140566087
位运算c
第十章 位运算 1、位运算对象只能是整形或字符型数据,在VC6.0中int型数据占4个字节 2、位运算符: 运算符 作用 ~ 按位求反 << 左移 >> 右移 & 按位与 ^ 按位异或 | 按位或 他们的优先级从高到低; 3、位运算符的运算功能: a、按位取反: ~01001101 = 101
- 14点睛Spring4.1-脚本编程
wiselyman
spring4
14.1 Scripting脚本编程
脚本语言和java这类静态的语言的主要区别是:脚本语言无需编译,源码直接可运行;
如果我们经常需要修改的某些代码,每一次我们至少要进行编译,打包,重新部署的操作,步骤相当麻烦;
如果我们的应用不允许重启,这在现实的情况中也是很常见的;
在spring中使用脚本编程给上述的应用场景提供了解决方案,即动态加载bean;
spring支持脚本