Thread: Add course into database

Forum : Spring WebMVC   11 Jan, 2018 20:41
User Image
Willium

Newbie

Joined: 16 Dec, 2017

Points: 100

Threads: 3

Posts: 1

Add course into database

| Quote Date : 11 Jan, 2018    Views:481    

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 : 7 Aug, 2017

Points : 100

Threads: 6

Posts: 5

Re: Add course into database

Reply Date : 30 Jan, 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