Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
c25378191e
|
@ -195,8 +195,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
<javassist.version>3.18.1-GA</javassist.version>
|
||||
<jstl.version>1.2</jstl.version>
|
||||
|
||||
|
|
|
@ -204,8 +204,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
<javassist.version>3.18.1-GA</javassist.version>
|
||||
<jstl.version>1.2</jstl.version>
|
||||
|
||||
|
|
|
@ -163,8 +163,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
<javassist.version>3.18.1-GA</javassist.version>
|
||||
|
||||
<!-- persistence -->
|
||||
|
|
|
@ -170,8 +170,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
<javassist.version>3.19.0-GA</javassist.version>
|
||||
|
||||
<!-- persistence -->
|
||||
|
|
|
@ -176,8 +176,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -141,8 +141,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
|
||||
<!-- logging -->
|
||||
<org.slf4j.version>1.7.9</org.slf4j.version>
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
|
||||
<!-- logging -->
|
||||
<org.slf4j.version>1.7.9</org.slf4j.version>
|
||||
|
|
|
@ -207,8 +207,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -226,8 +226,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
<properties>
|
||||
<java-version>1.7</java-version>
|
||||
<org.springframework-version>3.1.4.RELEASE</org.springframework-version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- logging -->
|
||||
<org.slf4j.version>1.7.7</org.slf4j.version>
|
||||
|
|
|
@ -231,8 +231,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -226,8 +226,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -21,8 +21,8 @@ public class MetricService implements IMetricService {
|
|||
@Autowired
|
||||
private CounterService counter;
|
||||
|
||||
private List<ArrayList<Integer>> statusMetric;
|
||||
private List<String> statusList;
|
||||
private final List<ArrayList<Integer>> statusMetric;
|
||||
private final List<String> statusList;
|
||||
private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
|
||||
public MetricService() {
|
||||
|
@ -33,6 +33,7 @@ public class MetricService implements IMetricService {
|
|||
|
||||
// API
|
||||
|
||||
@Override
|
||||
public void increaseCount(final int status) {
|
||||
counter.increment("status." + status);
|
||||
if (!statusList.contains("counter.status." + status)) {
|
||||
|
@ -40,11 +41,12 @@ public class MetricService implements IMetricService {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[][] getGraphData() {
|
||||
Date current = new Date();
|
||||
int colCount = statusList.size() + 1;
|
||||
int rowCount = statusMetric.size() + 1;
|
||||
Object[][] result = new Object[rowCount][colCount];
|
||||
final Date current = new Date();
|
||||
final int colCount = statusList.size() + 1;
|
||||
final int rowCount = statusMetric.size() + 1;
|
||||
final Object[][] result = new Object[rowCount][colCount];
|
||||
result[0][0] = "Time";
|
||||
|
||||
int j = 1;
|
||||
|
@ -73,8 +75,8 @@ public class MetricService implements IMetricService {
|
|||
@Scheduled(fixedDelay = 60000)
|
||||
private void exportMetrics() {
|
||||
Metric<?> metric;
|
||||
ArrayList<Integer> statusCount = new ArrayList<Integer>();
|
||||
for (String status : statusList) {
|
||||
final ArrayList<Integer> statusCount = new ArrayList<Integer>();
|
||||
for (final String status : statusList) {
|
||||
metric = repo.findOne(status);
|
||||
if (metric != null) {
|
||||
statusCount.add(metric.getValue().intValue());
|
||||
|
|
|
@ -223,8 +223,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -231,8 +231,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -386,8 +386,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -287,8 +287,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -31,7 +31,6 @@ public class RestClientLiveManualTest {
|
|||
|
||||
final String urlOverHttps = "http://localhost:8080/spring-security-rest-basic-auth/api/bars/1";
|
||||
|
||||
|
||||
// tests
|
||||
|
||||
@Test
|
||||
|
@ -72,4 +71,3 @@ public class RestClientLiveManualTest {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -251,8 +251,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -275,8 +275,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
|
||||
<property name="context-root" value="spring-security-rest-full"/>
|
||||
<property name="java-output-path" value="/spring-security-rest-full/target/classes"/>
|
||||
</wb-module>
|
||||
|
|
|
@ -414,8 +414,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
|
@ -25,6 +25,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
|
|||
viewResolver.setSuffix(".jsp");
|
||||
return viewResolver;
|
||||
}
|
||||
|
||||
// API
|
||||
@Override
|
||||
public void addViewControllers(final ViewControllerRegistry registry) {
|
||||
|
|
|
@ -238,8 +238,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- Spring -->
|
||||
<org.springframework.version>4.1.5.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
|
||||
<org.springframework.version>4.1.6.RELEASE</org.springframework.version>
|
||||
<org.springframework.security.version>3.2.7.RELEASE</org.springframework.security.version>
|
||||
|
||||
<!-- persistence -->
|
||||
<hibernate.version>4.3.8.Final</hibernate.version>
|
||||
|
|
Loading…
Reference in New Issue