404 error!璇锋眰鍦板潃鏈夎锛
璇峰弬鐓т笅闈㈢殑姝ラ妫€鏌ヤ綘鐨勯」鐩€侟/div>
浠g爜鐢熸垚鍓嶏紝閰嶇疆鐩稿叧鏂囦欢
  • 鐢熸垚浠g爜鍖呯殑璺緞(jeecg_config.properties)锛
    
      bussi_package=com.buss // 鐢熸垚浠g爜鐨勫寘鍓嶇紑
                    
  • 浠g爜鐢熸垚鐣岄潰鐨勯厤缃細
    1. 琛ㄥ悕锛欬span class="propValue">guoming_test锛汓/li>
    2. 鍖呭悕锛欬span class="propValue">guoming锛汓/li>
    3. 浠g爜鍒嗗眰椋庢牸锛欬span class="propValue">浠g爜鍒嗗眰锛汓/li>
浠g爜鐢熸垚鍚庯紝缂栬緫閰嶇疆鏂囦欢
  • 鍔犺浇Controller(spring-mvc.xml)
    
      <context:component-scan base-package="com.buss.*">
          <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service" />
      context:component-scan>
                    
  • 鍔犺浇service(spring-mvc-hibernate.xml)
    
      <context:component-scan base-package="com.buss.*">
          <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
      context:component-scan>
                            
  • 鎵弿hibernate瀹炰綋(spring-mvc-hibernate.xml)
    
      濡傛灉鐢熸垚浠g爜鏃讹紝浠g爜鍒嗗眰椋庢牸閫夋嫨浜嗏€滀唬鐮佸垎灞傗€濓紝鍒欓厤缃枃浠跺涓嬶細
      <property name="packagesToScan">
          <list>
              ....
              
              <value>com.buss.entity.*value>
              
              <value>com.buss.*.entityvalue>
          list>
      property>
                    
浠g爜鐢熸垚鍚庯紝缂栬緫鑿滃崟鍦板潃
  1. 绯荤粺绠$悊-->鑿滃崟绠$悊-->褰曞叆鑿滃崟
  2. 濉啓鍦板潃锛欬span class="propValue">guomingTestController.do?guomingTest