How to run the D2 Rest plugin project locally using Spring

Gopi Parthiban
edited September 5 in Documentum #1

Hi All,

We have created a new plugin project using d2rest smartview sdk [23.4] and on top of it we have created a D2-Rest plugin as well.

If we build the project and deploy it to the ls-rest server, the endpoint works and we dont have any issues. however , we want to develop our custom D2 Rest plugin and want to test the changes locally using spring boot.

We created a spring main class and tried to run the project but getting the below error

———

APPLICATION FAILED TO START

Description:

Field sessionRepository in com.emc.documentum.rest.dfc.SessionAwareAbstractManager required a bean of type 'com.emc.documentum.rest.dfc.RepositorySession' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.emc.documentum.rest.dfc.RepositorySession' in your configuration.

———

How to run the D2 Rest plugin project locally using Spring? Any guidance would be appreciated!

Thanks,

Gopi