スポンサーサイト
新しい記事を書く事で広告が消せます。
// 衝突するものを排除する
configurations {
compile.exclude group: 'org.springframework.boot', module: "spring-boot-starter-tomcat"
compile.exclude group: 'org.slf4j', module: "jul-to-slf4j"
compile.exclude group: 'org.apache.logging.log4j', module: "log4j-to-slf4j"
compile.exclude group: 'ch.qos.logback', module: "logback-classic"
}
// AppEngineでの起動のため
apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'war'
buildscript {
// ...
dependencies {
// ...
classpath 'com.google.cloud.tools:appengine-gradle-plugin:+'
}
}
dependencies {
// ...
providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
compile group: 'com.google.cloud.tools', name: 'appengine-gradle-plugin', version: '1.3.5'
}
// ...
@SpringBootApplication
class ServerApplication : SpringBootServletInitializer() {
override fun configure(application: SpringApplicationBuilder): SpringApplicationBuilder {
return application.sources(ServerApplication::class.java)
}
}
fun main(args: Array) {
runApplication(*args)
}
# ...
logging.level.root=INFO
logging.level.org.springframework.test.web.servlet.result=DEBUG
dependencies {
// ...
runtime('mysql:mysql-connector-java')
compile group: 'com.google.cloud.sql', name: 'mysql-socket-factory', version: '1.0.5'
}
<use-google-connector-j>true</use-google-connector-j>
spring.datasource.url=jdbc:google:mysql://インスタンス接続名/DB名
spring.datasource.username=ユーザ名
spring.datasource.password=パスワード
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.datasource.driver-class-name=com.mysql.jdbc.GoogleDriver
こちらのページでは2.8gと出ています。この値はどれだけの塩を入れるかにも依るので、多少の幅はあっても仕方ないと思います。100gのパスタを1%の食塩水で茹でると2.8gの塩分が加わるということです。
\[f(x) = \int2x^{3}e^{\int2xdx}dx \\
=\int2x^{3}e^{x^{2}}dx \\
t=x^{2}として、\frac{dt}{dx}=2x \\
上式=\int \Bigl(2x^{3}e^{x^{2}}\cdot\frac{1}{2x}\frac{dt}{dx} \Bigl)dx \\
=\int x^{2}e^{x^2}\frac{dt}{dx}dx \\
=\int te^{t} dt \\
=\int \{ (e^{t})'\cdot t \} dt \\
=e^{t}t - \int (e^{t} \cdot 1 )dt \\
=e^{t}(t-1) + C \\
\therefore f(x) = e^{x^{2}}(x^{2}-1) + C \\(C:積分定数) \]
Author:JDB Luigi
どこにでもいるようなありふれた人間・・・という訳でもなく、かと言って怪しい宗教を信仰する変人という訳でも無い。
基本的に掲載しているコード等は煮ていただいても焼いていただいても結構ですが、利用は自己責任にてお願いいします。
また、バグ・アドバイス等もしあればよろしくお願いします。