Make sure you have completed prerequisites (see Prerequisites) and created a starter project (see Create a starting point Spring project) with configuration properties set for both event handling and ReST API.
The application.properties file should look something like this:
# Where is Alfresco Active MQ JMS Broker running? spring.activemq.brokerUrl=tcp://localhost:61616 # This property is required if you want Spring Boot to auto-define the ActiveMQConnectionFactory, # otherwise you can define that bean in Spring config spring.jms.cache.enabled=false # HTTP Basic Authentication that will be used by the API content.service.security.basicAuth.username=admin content.service.security.basicAuth.password=admin # Location of the server and API endpoints content.service.url=http://localhost:8080 content.service.path=/alfresco/api/-default-/public/alfresco/versions/1 search.service.path=/alfresco/api/-default-/public/search/versions/1
Note: The configuration will look slightly different if you want
to use the Spring Integration for event handling.