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
server.port = 9090 | |
spring.thymeleaf.cache = false | |
spring.datasource.url=jdbc:oracle:thin://@10.202.100.151:1521/AAAA | |
spring.datasource.username=xxx | |
spring.datasource.password=xxx | |
spring.datasource.driverClassName=oracle.jdbc.OracleDriver |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>thjug</groupId> | |
<artifactId>Trainging</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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
n = 3 | |
2,2,2 | |
2,2,1 | |
2,2,0 | |
2,1,2 | |
2,1,1 | |
2,1,0 | |
2,0,2 | |
2,0,1 | |
2,0,0 |
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
@TableSchema(pk = "id", name = "accounts") | |
case class AccountEntity(id: Long | |
, clientId: Long | |
, isActive: Boolean | |
, isVerify: Boolean | |
, accountRole: Int | |
, username: String | |
, passwordHash: String = "" | |
, email: String = "" | |
, firstname: String = "" |
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
def f(w: String, l: List[String]) = l.foldLeft(w)((x,y) => x.replace(y,"")).isEmpty | |
f("bigbears", List("b", "i", "g", "e", "a", "r", "s")) |
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
print(100*(1-readLine.split(' ').map(_.toFloat).reduceLeft(_/_))) |
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
package in.norbor.bigbears.hangman2 | |
import akka.actor.{ActorRef, ActorSystem, Props} | |
import akka.pattern.ask | |
import akka.util.Timeout | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.duration._ | |
import scala.io.StdIn | |
import scala.language.postfixOps |
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
└───maven-project | |
├───pom.xml | |
├───README.txt | |
├───NOTICE.txt | |
├───LICENSE.txt | |
└───src | |
├───main | |
│ ├───java | |
│ ├───resources | |
│ ├───filters |
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
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>link.colon</groupId> | |
<artifactId>springboot-book</artifactId> | |
<version>1.0</version> | |
<packaging>jar</packaging> | |
<parent> |
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
package link.colon; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.web.servlet.ServletComponentScan; | |
@ServletComponentScan | |
@SpringBootApplication | |
public class Application { |