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
pre { padding: 5px; margin: 5px; overflow-wrap: break-word; | |
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */} | |
.json-string { color: #067d17; } | |
.json-number { color: #1750eb; } | |
.json-boolean { color: #0033b3; } | |
.json-null { color: #003bb3; } |
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
Extract the src zip somewhere and then go to the /src folder and execute this command (but check folder permissions) | |
%path to jdk bin%/javadoc -d docs -Xmaxwarns 10 -Xmaxerrs 10 -Xdoclint:none -sourcepath . -subpackages java:javax:org:com |
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 | |
@EnableBatchProcessing | |
class BatchConfiguration { | |
@Autowired | |
private JobRepository jobRepository; | |
@Value("${job.cron.expression}") | |
private String cronExpression; |
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
-XX:+PrintGCDetails Print details at garbage collection | |
-XX:+PrintGCTimeStamps Print timestamps at garbage collection (or -XX:+PrintGCDateStamps) | |
-Xloggc:heroes-gc.log Log GC verbose output to specified file. The verbose output is controlled by the normal verbose GC flags | |
-XX:+UseGCLogFileRotation Enabled GC log rotation, requires -Xloggc | |
-XX:NumberOfGCLogFiles=5 Set the number of files to use when rotating logs, must be >= 1 |
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; |
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
<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
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
<?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
<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> |
NewerOlder