java - Spring beans unresolved in IntelliJ -


i started project intellij worked did broke it. here applicationcontext.xml file.

<beans xmlns="http://www.springframework.org/schema/beans"    xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"    xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">      <bean class="foo.bar" /> </beans> 

when inspecting file error

cannot resolve bean 'foo.bar'

the same thing happens classes try put in spring configuration file. clue ?

here screenshots :

spring file error : https://drive.google.com/file/d/0bwhiwys5tjdrawxjuzhbbdvnnk0/view?usp=sharing

spring facet : https://drive.google.com/file/d/0bwhiwys5tjdrb1rhbglcow9xetg/view?usp=sharing

i use maven import jars , classes exist in classpath. code assist doesn't give me tip when edit bean class property.

without full log-trace, can make assumption on why happening

  1. did not include required dependencies (jars)
  2. you have not created foo.bar class in classpath

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -