|Re: Multiple instances found error.. [message #1740271 is a reply to message #1739949]
||Thu, 11 August 2016 06:23
| Beat Schwarzentrub
Registered: November 2010
Luka Cavic wrote on Fri, 05 August 2016 16:24|
Hi, how to solve it by not adding order below service?
Now, I have many services, but only one service extends MainPostgreService(where is db connection methods) and has order below class name
When you don't add the @Order annotation, your bean gets assigned the default order of 5000. This is fine, as long as only one bean of a specific type exists. If more than one exists, you have to assign distinct orders to them. Alternatively, you can replace the bean from which you extend by adding the @Replace annotation.
See this section of the Scout documentation:
Powered by FUDForum
. Page generated in 0.01528 seconds