This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.camel.builder.RouteBuilder; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
@SpringBootApplication | |
public class AdapterApplication { | |
public static void main(final String[] args) { | |
new SpringApplication(AdapterApplication.class).run(args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
protected static class CustomAuthorizationServerSecurityConfig extends AuthorizationServerSecurityConfiguration { | |
@Autowired | |
private AuthorizationServerEndpointsConfiguration endpoints; | |
@Autowired | |
private ClientDetailsService clientDetailsService; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var restify = require('restify'); | |
var server = restify.createServer({ name: 'example' }); | |
var fs = require('fs'); | |
server.listen(8080, function () { | |
console.log('%s listening at %s', server.name, server.url); | |
}); | |
server.use(restify.fullResponse()).use(restify.bodyParser()); |
NewerOlder