读取不到xml文件
我在 WEB-INF/文件夹下 建立一个springmvc-servlet.xml的文件
其中设置数据源和JdbcTemplate
<!--数据库的培植 -->
<!--Load local-->
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" p:location="/WEB-INF/local.properties" />
<!--dataSource-->
<jee:jndi-lookup id="dataSource" jndi-name="${jndi.jdbc.basedb}"/>
<!--jdbcTemplate-->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"/>
</bean>
-----------------------------
我在一个上传类里想调用这个 jdbcTemplate 类
@Autowired
public JdbcTemplate jdbcTemplate;
protected ModelAndView onSubmit(
HttpServletRequest request,
HttpServletResponse response,
Object command,
BindException errors){
String _sql;
ApplicationContext ac=new WebApplicationContextUtils.getWebApplicationContext("/WEB-INF/springmvc-servlet.xml");
&n
相关问答:
txt 和XML 格式相应
不借助DataSet
导入读取TXT文件
然后直接写入XML(同一文件,不同数据,递增原数据没有被覆盖情况下增加数据.)
教个要点或最好是有个代码提示的
过路好汉 帮个忙撒^^
不会,帮楼主 ......
想用XML加FLASH 做统计报表 ,,有没有人有好的建议呀~~就是把XML里的内容导入到做好的FLASH模块里面去。。。
帮顶
你没用过开源的OpenFlashChart吗?
试试FusionChart
数据源就是XML的
http://www.fusionc ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' 打开刚创建的文件。
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' 读入所有字符到变量中 ......
请高手指教用java实现根据xsd文件生成xml文件,小弟初学希望能给个实例!谢谢!
期待高手指教!!!!!!!!
没人知道吗。。。。。。。。。。
引用
schema xsd 文件是用于验证 XML 格式的,并不是用于生 ......