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 | |
public class PersistenceConfiguration { | |
@Bean | |
@ConfigurationProperties(prefix="spring.datasource") | |
@Primary | |
public DataSource dataSource() { | |
return DataSourceBuilder.create().build(); | |
} | |
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
plugins { | |
id 'org.springframework.boot' version '1.5.8.RELEASE' | |
} | |
bootRepackage { | |
mainClass = 'ch.renewinkler.mobile_track.MobileTrackApplication' | |
} | |
apply plugin: 'java' |
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
plugins { | |
id "com.moowork.node" version "1.2.0" | |
} | |
//node { | |
// version = '6.9.4' | |
// download = true | |
//} | |
task clean(dependsOn: 'npm_run_clean') { |
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
allprojects { | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
repositories { | |
mavenCentral() |
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
include 'backend' | |
include 'frontend' | |
rootProject.children.each { | |
it.buildFileName = it.name + '.gradle' | |
} |
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
# execute awk file | |
awk -f users.awk /etc/passwd | |
# print specific column and show total lines processed | |
BEGIN { FS=":" ; print "Username"} | |
{print $1} | |
END {print "Total users= " NR} | |
# print column where it meets critera | |
BEGIN { FS=":" ; print "Username"} |
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
@Retention(RetentionPolicy.RUNTIME) | |
public @interface Profiled { | |
} |
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
<dependency> | |
<groupId>org.aspectj</groupId> | |
<artifactId>aspectjweaver</artifactId> | |
</dependency> |
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
@Aspect | |
@Order(Ordered.LOWEST_PRECEDENCE) | |
@Component | |
public class LoggerAspect { | |
private Logger logger; | |
public LoggerAspect() { | |
logger = LoggerFactory.getLogger(getClass()); | |
} |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<configuration> | |
<transformers> | |
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<mainClass>{your.package.main.class}</mainClass> | |
</transformer> | |
</transformers> | |
<filters> |
NewerOlder