質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -434,9 +434,7 @@
|
|
434
434
|
|
435
435
|
###追記
|
436
436
|
|
437
|
-
**xebme様**のおかげで、大変参考になるF&Qに辿り着いたので。
|
437
|
+
**xebme様**のおかげで、大変参考になるF&Qに辿り着いたので、載せておきます。
|
438
|
-
|
439
|
-
載せておきます。
|
440
438
|
|
441
439
|
|
442
440
|
|
2
リンク追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -431,3 +431,13 @@
|
|
431
431
|
[https://stackoverflow.com/questions/45771942/sqlexception-no-suitable-driver-found-for-jdbcmysql-between-two-maven-projects](https://stackoverflow.com/questions/45771942/sqlexception-no-suitable-driver-found-for-jdbcmysql-between-two-maven-projects)
|
432
432
|
|
433
433
|
他諸々。
|
434
|
+
|
435
|
+
###追記
|
436
|
+
|
437
|
+
**xebme様**のおかげで、大変参考になるF&Qに辿り着いたので。
|
438
|
+
|
439
|
+
載せておきます。
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
[https://stackoverflow.com/questions/3485177/how-to-configure-tomcat-to-connect-with-mysql](https://stackoverflow.com/questions/3485177/how-to-configure-tomcat-to-connect-with-mysql)
|
1
不要箇所削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
設定ファイルの配置場所が間違っているのでしょうか。
|
10
10
|
|
11
|
-
参考になるサイトが古いバージョンが多い事もあり、どなたかご教示いただけ
|
11
|
+
参考になるサイトが古いバージョンが多い事もあり、どなたかご教示いただけると幸いです。
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -406,9 +406,9 @@
|
|
406
406
|
|
407
407
|
public DataSource getDataSource() throws NamingException {
|
408
408
|
|
409
|
-
Context initContext = new InitialContext();
|
409
|
+
Context initContext = new InitialContext();
|
410
|
-
|
410
|
+
|
411
|
-
Context context = (Context)initContext.lookup("java:/comp/env/");
|
411
|
+
Context context = (Context)initContext.lookup("java:/comp/env/");
|
412
412
|
|
413
413
|
DataSource source = (DataSource)context.lookup("jdbc/upload_image_db4");//java:/comp/env/jdbc/upload_image_db4
|
414
414
|
|