Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need advice to execute a common mehtod  RSS feed

 
pari Nagda
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In spring MVC web application we have multiple controllers exposed as REST controller using @ controller. All the services in the controller created using @RequestMapping are calling a java method written in a different class - In short one method is invoked from different -2 services written in controllers . Can you please advice this is the proper way to execute a common method or is there any alternative available ?

 
samuel oke
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please, is your question about calling methods from different class or just declaring and executing a runnable method?

if yes you can check https://youtu.be/q-VxJN2UyL0
 
pari Nagda
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is about calling a common method not methods from multiple locations i.e service methods in controllers .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!