title: Error while running my maven project using springmvc and hibernate
body: <pre><code>org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-config.xml]: Could not resolve placeholder 'hibernate.show_sql'
  org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272)
  org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
  org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:640)
  org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:615)
  org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:405)
  org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)
  org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)
  org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)
  org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
  org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
  javax.servlet.GenericServlet.init(GenericServlet.java:158)
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:501)
  org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
  org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>spring-config.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"  
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"  
   xmlns:util="http://www.springframework.org/schema/util" xmlns:mvc="http://www.springframework.org/schema/mvc"  
   xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd  
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd  
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd  
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt;    
      &lt;context:component-scan  base-package="controller" /&gt;  
      &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;  
          &lt;property name="prefix" value="/WEB-INF/jsp/" /&gt;  
          &lt;property name="suffix" value=".jsp" /&gt;  
      &lt;/bean&gt;  
  
     &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="location" value="classpath:database.properties"/&gt;
  &lt;/bean&gt;
      &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;  
          &lt;property name="driverClassName" value="${database.driver}" /&gt;  
          &lt;property name="url" value="${database.url}" /&gt;  
          &lt;property name="username" value="${database.user}" /&gt;  
          &lt;property name="password" value="${database.password}" /&gt;  
      &lt;/bean&gt;  
  
  &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;  
          &lt;property name="dataSource" ref="dataSource" /&gt;  
          &lt;property name="annotatedClasses"&gt;    
              &lt;list&gt;    
                  &lt;value&gt;com.model.Emp&lt;/value&gt;    
              &lt;/list&gt;    
          &lt;/property&gt;   
          &lt;property name="hibernateProperties"&gt;  
              &lt;props&gt;  
                  &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQL5Dialect&lt;/prop&gt;  
                  &lt;prop key="hibernate.show_sql"&gt;${hibernate.show_sql}&lt;/prop&gt;  
              &lt;/props&gt;  
          &lt;/property&gt;  
      &lt;/bean&gt;  
      &lt;bean id="txManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"&gt;  
          &lt;property name="sessionFactory" ref="sessionFactory" /&gt;  
      &lt;/bean&gt;  
  
      &lt;bean id="dataDaoImpl" class="com.dao.DataDaoImpl" /&gt;  
  
  &lt;/beans&gt;
  </code></pre>