Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Last active October 23, 2015 08:04
Show Gist options
  • Select an option

  • Save cosbor11/7d8a8488e6f0e543d5b1 to your computer and use it in GitHub Desktop.

Select an option

Save cosbor11/7d8a8488e6f0e543d5b1 to your computer and use it in GitHub Desktop.
onyx database server application
@Configuration
@EnableAutoConfiguration
@EnableWebMvc
@ComponentScan(basePackages = {"com.onyx"})
@EnableTransactionManagement
@PropertySource(value = {"classpath:application.properties", "file:${user.home}/onyx/database.properties"}, ignoreResourceNotFound = true)
public class SampleServer extends DefaultOnyxDatabaseApplication
{
public SampleServer()
{
this.setApplicationClass(SampleServer.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment