Thread: Add course into database

Forum : Spring WebMVC   11-1-2018 03:41:29 PM
User Image
Willium

Newbie

Joined: Dec 16, 2017

Points: 100

Threads: 3

Posts: 1

Add course into database

| Quote Date : Jan 11, 2018    Views:384    

Hi...... friends
I am attaching eclipse(STS) program which adds course into database.
While configuring the configuration file(servicebeans.xml), I am getting error( Referenced bean 'courseEventDao' not found,- No setter found for property 'courseD' in class 'com.addcourse.service.CourseService')

Plz..... unzip it, import and check it. I am using STS interface.

scroll down to get attached files

Attachments

Comments

User Image
Lenovo

Newbie

Joined : Aug 7, 2017

Points : 100

Threads: 6

Posts: 5

Re: Add course into database

Reply Date : Jan 30, 2018

import persistence-beans.xml before the service-beans.xml inside your application-context.xml file .

application-context.xml
-------------------------------
<import resource="persistence-beans.xml">
<import resource="service-beans.xml">


persistence-beans.xml
------------------------------

<bean id="courseDao" class="CourseDao">
<property name="jdbcTemplate?" ref="jdbcTemplate">
</bean>

service-beans.xml
-------------------------

<bean id="courseService" class="CourseService">
<property name="courseDao" ref="courseDao">
</bean>


Load More

No More Comments