ssm框架中applicationContext.xml文件中配置别名

在applicationContext.xml中配置如下:

 

 通过以下property标签中给定name属性value属性及对应的值,来将domain包下所有实体类设置别名。

在xxxDao.xml中

未配置别名前:resultType="cn.xxx.xxx.domain.Order"

 

 配置别名后:resultType="Order"

 

posted @ 2020-08-03 11:03  地球外面是什么  阅读(416)  评论(0)    收藏  举报