-
Notifications
You must be signed in to change notification settings - Fork 8
Stand up searchbox
Tharanga edited this page Dec 29, 2016
·
2 revisions
@SpringBootApplication
@EnableSearchBox
public class App
{
public static void main( String[] args )
{
SpringApplication.run(App.class, args);
}
}
- You can easily integrate searchbox with your Spring application by using @EnableSearchBox annotation.
- Add some properties into ../src/main/resources/application.properties or ../src/main/resources/application.yml
- appname is a required property. It is used to identify individual applications.
searchbox.appname = movies-search-app
- Some of the optional properties.
searchbox.page.length = # Search result page size. Default value is 10
server.host = # Http server host. Default value is localhost
server.port = # Http server port. Default value is 1028
redis.host = # Redis server host. Default value is localhost
redis.port = # Redis server port. Default value is 6379