常用代码备忘

来源:互联网 发布:java抽象类能被继承 编辑:程序博客网 时间:2024/06/04 01:14

<%request.setCharacterEncoding("utf-8");%>


String url="jdbc:mysql://localhost/student?useUnicode=true&characterEncoding=utf-8";



import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN/EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<bean id="helloWorld" class="com.beiruan.spring.HelloWorld">
</bean>
<bean id="helloChina" class="com.beiruan.spring.HelloChina">
</bean>
<bean id="person" class="com.beiruan.spring.Person">
<property name="sayHello" ref="helloChina">
</property>
</bean>
</beans>


${error   }

原创粉丝点击