Why are the Spring Libraries mising in my Eclipse project? -


i beginning learn spring. have read spring ide (eclipse plug-in) , sts. decided install spring ide eclipse.

right i'm going through tutorials (di). have created class injected in another. have created xml configuration, can not create bean uses spring inversion of control because eclipse not find imported libraries spring itself. example:

import org.springframework.context.applicationcontext; import org.springframework.context.support. classpathxmlapplicationcontext

do need import external jars or install spring framework? if so, why? i'm not understanding problem because if install eclipse plugin, wouldn't have needed libraries in there?

i know basic question have not found clear answer.

you don't mention version of eclipse or sts using. create java project spring added via pom.xml or add libraries java project.

i assume getting file import error in eclipse, correct?

just because have spring plugin, doesn't load libraries perse. if creating regular java project example, no spring libraries loaded. have set libraries using configuration, ones mentioned or adding libraries libraries tab under build path on project.

with due respect endeavors, focus on basic eclipse web projects first , move spring. getting bogged down basics of project setups here.

however, if want continue spring @ point, here tutorials should you.

basically, answer question, plugin doesn't set spring libraries you. assume because spring, configure components need project. example, if not using spring aop, don't add in libraries it.

here basic list of features eclipse indigo sts plugin. explains can you.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -