Giter Site home page Giter Site logo

scala_scala3_samples's Introduction

Scala3 学习专栏

//scala3格式化 配置方式: https://scalameta.org/scalafmt/docs/configuration.html

metals

metals completions not work in scala3,why?

本地调试:

sbt -jvm-debug 5005 run

Marco 调试

sbt -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

指定不同的配置文件:

sbt -Dconfig.resource=application-private.conf -jvm-debug 5005 run

使用 build.sbt 来定义依赖关系

name := "scala-sum"

version := "0.1"

scalaVersion := "2.12.4"

libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.38"

// https://mvnrepository.com/artifact/com.alibaba/fastjson
libraryDependencies += "com.alibaba" % "fastjson" % "1.2.7"

libraryDependencies += "com.github.wangzaixiang" %% "scala-sql" % "2.0.6"

libraryDependencies ++= Seq(
  "org.slf4j" % "slf4j-api" % "1.7.9",
  "org.scala-lang" % "scala-reflect" % scalaVersion.value,

  "com.h2database" % "h2" % "1.4.184" % "test",
  "junit" % "junit" % "4.12" % "test",
  "ch.qos.logback" % "logback-classic" % "1.1.3" % "test",
  "mysql" % "mysql-connector-java" % "5.1.38" % "test"
)

Marco

Scala3 good Question

scala_scala3_samples's People

Contributors

leihuazhe avatar jeffrey-maple avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.