- 浏览: 36874 次
- 性别:
- 来自: 杭州
最新评论
文章列表
求问XML在java web应用里面的解析效率以及运行过程中的效率,我一直觉得XML效率比较低下(个人鄙见),想在java中彻底抛弃XML,
希望各位大牛能够解答
package com;
public interface IComponent {
public void business1() ;
public void business2() ;
public void business3() ;
}
package com;
public class Component implements IComponent{
public void business1() {
System.out.println("业务1");
}
public void business2() ...
package spring.chapter2.setDemo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringTest {
public static void main(String args[]){
ApplicationContext ac = new ClassPathXmlApplicationContext(&qu ...
//还可以写在main外面
interface product{
public void getName();
}
class productA implements product {
@Override
public void getName() {
// TODO Auto-generated method stub
System.out.println("++++A++++");
}
}
class productB implements product{
@Ove ...
public class ChatServlet
extends HttpServlet implements CometProcessor {
protected ArrayList<HttpServletResponse> connections =
new ArrayList<HttpServletResponse>();
protected MessageSender messageSender = null;
public void init() throws ServletExcept ...