spring 配置问题

问题描述

<beanid="user/login"class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"p:modelKeys=""/>请问各位前辈,在spring中这个modelKeys属性怎么指定多个值。望各位前辈解答

解决方案

解决方案二:
看一下spring中集合如何注入
解决方案三:
找不到参考才问的

时间: 2024-08-03 17:35:06

spring 配置问题的相关文章

maven多模块构建spring配置问题悬赏

问题描述 maven多模块构建spring配置问题悬赏 自己练习搭建了一个maven多模块的项目,框架用的是spirngMVC+spirng+mybatis 其中做了简单的web模块和service模块的分离.在web模块中的spirng主配置文件中 用标签配置自动扫描service模块的 指定包路径,以求在web模块的controller中能通过注解自动注入,然而在启动tomcat的 时候报类找不到的错误. 试图通过<bean id ="" class=""

java web spring配置问题

问题描述 java web spring配置问题 3C spring+struts+hibernate 框架,项目启动,bean报错,错误类型是六月 15 2015 7:47:47 下午 org.apache.catalina.core.ApplicationContext log信息: Initializing Spring root WebApplicationContextD:java7apache-tomcat-7.0.62binWebRootWEB-INFD:java7apache-t

myeclipse的spring配置问题

问题描述 myeclipse的spring配置问题 选中的这两段代码一加上就会显示404错误,是为什么呀,是spring配置错了吗? 解决方案 myeclipse配置springmyeclipse中配置springmyeclipse2014配置spring 解决方案二: 这个是项目整合spring框架的配置,没有错,你报404的页面可能是配置使用spring拦截器拦截了. 解决方案三: 请确认你的applicationContext.xml文件是不是在WEB-INF下如果在src下请使用 <co

spring配置问题

问题描述 刚学spring,一开始就遇到个异常. Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [xml/1.xml]; nested exception is org.springframework.beans.Fat

Spring配置问题——元素 &amp;quot;context:component-scan&amp;quot; 的前缀 &amp;quot;context&amp;quot; 未绑定

            今天配置完:             <!-- 自动扫描与装配,包含子包 --> <context:component-scan base-package="cn.itcast.oa"></context:component-scan>         这句话之后,validating 我的spring配置文件就一直走不下去了.当时以为是myeclipse卡了,之后去掉了所有的validating.          后来写了

spring-是不是Spring的配置问题,我没使用过SPring

问题描述 是不是Spring的配置问题,我没使用过SPring "/Web"应用程序中的服务器错误. 'personBLL' node cannot be resolved for the specified context [HRP.Web.handler.system.PersonHandler]. 说明: 执行当前 Web 请求期间,出现未处理的异常.请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息. 异常详细信息: Spring.Core.InvalidP

hibernate-spring配置问题,求帮助

问题描述 spring配置问题,求帮助 [color=#FF0000]applicationContext.xml:[/color] <?xml version="1.0" encoding="UTF-8"?> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"

spring mvc-关于springMVC mybatis 多数据源配置问题

问题描述 关于springMVC mybatis 多数据源配置问题 12:59:38,349 ERROR [STDERR] SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] 12:59:38,382 WARN [ConfigurationClassEnhancer] @Bean method SpringIocMappingConfig.mapperScannerC

spring配置-Spring 访问路径配置问题

问题描述 Spring 访问路径配置问题 我项目访问一张图片 spring配置如下 <bean name="/hello" class="com.xtao.controller.HelloController"></bean> <mvc:resources location="/resources/" mapping="/resources/**"/> <bean class=&quo