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
package org.vigi; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.DirectoryStream; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; |
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
import static org.hamcrest.CoreMatchers.hasItem; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.hamcrest.Matchers.hasProperty; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeDiagnosingMatcher; | |
/** | |
* Matcher that checks if an {@link Iterable} has one item with a given property |
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
import static org.hamcrest.CoreMatchers.equalTo; | |
import java.util.List; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeDiagnosingMatcher; | |
import org.hamcrest.collection.IsIterableContainingInOrder; | |
import com.google.common.collect.Lists; |
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
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> | |
<property name="entityManagerFactory" ref="entityManagerFactory" /> | |
</bean> | |
<tx:annotation-driven mode="aspectj" | |
transaction-manager="transactionManager" /> | |
<bean id="entityManagerFactory" | |
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> | |
<property name="persistenceUnitName" value="persistenceUnit" /> | |
<property name="dataSource" ref="dataSource" /> |
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
<plugin> | |
<groupId>org.apache.tomcat.maven</groupId> | |
<artifactId>tomcat7-maven-plugin</artifactId> | |
<version>2.1</version> | |
<configuration> | |
<fork>true</fork> | |
<port>8080</port> | |
<path>...path> | |
<contextFile>src/test/resources/context.xml</contextFile> | |
</configuration> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:security="http://www.springframework.org/schema/security" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd | |
http://www.springframework.org/schema/security | |
http://www.springframework.org/schema/security/spring-security-3.1.xsd"> | |
<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy"> |
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
mvn com.oracle.weblogic:weblogic-maven-plugin:undeploy com.oracle.weblogic:weblogic-maven-plugin:deploy -pdev -Dweblogic.server.target=ms1 |
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
<c:set var="page" scope="request" value="${it.number + 1}"/> | |
<c:set var="size" scope="request" value="${it.size}"/> | |
<c:set var="maxPages" scope="request" value="${it.totalPages}"/> | |
<c:if test="${it.number lt 0 or it.totalElements le 0 or it.totalPages le 0}"> | |
<c:set var="page" value="0"/> | |
<c:set var="size" value="0"/> | |
<c:set var="maxPages" value="0"/> | |
</c:if> | |
<c:if test="${empty size || size lt 1}"> | |
<c:set var="size" value="25"/> |
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
([âa-df-zA-Z])î([a-zA-Z]) with \1â\2. [âî]([a-z])î with â\1â | |
^013 - paragraph | |
Shift+F3 as many times as necessary to get the capitalization the way you want it for the selected words. |
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
import org.springframework.boot.context.embedded.FilterRegistrationBean; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.access.AccessDecisionVoter; | |
import org.springframework.security.access.vote.AffirmativeBased; | |
import org.springframework.security.access.vote.RoleVoter; | |
import org.springframework.security.authentication.AuthenticationManager; | |
import org.springframework.security.authentication.AuthenticationProvider; | |
import org.springframework.security.authentication.ProviderManager; | |
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; |
OlderNewer