This file contains hidden or 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 | |
@EnableSwagger | |
public class SwaggerConfig { | |
private SpringSwaggerConfig springSwaggerConfig; | |
@Autowired | |
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) { | |
this.springSwaggerConfig = springSwaggerConfig; | |
} |
This file contains hidden or 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
input { | |
file { | |
path => ["var/log/apache.log"] | |
type => "saurzcode_apache_logs" | |
} |
This file contains hidden or 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
public Node<E> reverseList(Node<E> headList) { | |
Node<E> current = headList; | |
Node<E> next = null; | |
Node<E> result = null; | |
while (current != null) { | |
next = current.next; | |
current.next = result; | |
result = current; |