- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 JAVAWEB 部署完成就运行启动线程 ,并往线程中添加service层
1.部署完启动线程在web.xml中添加listener<listener> <listener-class>com.hzlinge.util.MyListener</listener-class> </listener>在MyListener contextInitialized方法中添加线程启动方法package com.hzlinge....
2018-06-23 15:36:29 2735
indexOf()函数的用法
java中indexOf()函数的用法
java中indexOf()函数用法
indexOf(String):返回字符串中indexOf()中字符串String在你父串中首次出现的位置
eg:
String str = "adfiblienfseweifjoaa353495q";//父串
System.out.println(str.indexOf("fse"));//9,从父串0位置开始找fse
2014-04-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人