안효원 안효원 2021-08-18
JSPDay5Half
@a39f64c55e9f3323e6a5a834be5f7728dbbb9f99
 
.idea/.gitignore (added)
+++ .idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
 
.idea/inspectionProfiles/Project_Default.xml (added)
+++ .idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
+    <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
+  </profile>
+</component>(No newline at end of file)
 
.idea/modules.xml (added)
+++ .idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/workspace.iml" filepath="$PROJECT_DIR$/.idea/workspace.iml" />
+    </modules>
+  </component>
+</project>(No newline at end of file)
 
.idea/runConfigurations.xml (added)
+++ .idea/runConfigurations.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="RunConfigurationProducerService">
+    <option name="ignoredProducers">
+      <set>
+        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
+      </set>
+    </option>
+  </component>
+</project>(No newline at end of file)
 
.idea/vcs.xml (added)
+++ .idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>(No newline at end of file)
 
.idea/workspace.iml (added)
+++ .idea/workspace.iml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>(No newline at end of file)
202108/.classpath
--- 202108/.classpath
+++ 202108/.classpath
@@ -9,6 +9,10 @@
 	</classpathentry>
 	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
 	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
-	<classpathentry exported="true" kind="lib" path="C:/project/mariadb-java-client-2.7.3.jar"/>
+	<classpathentry kind="lib" path="C:/project/mysql-connector-java-8.0.26/mysql-connector-java-8.0.26.jar">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
 	<classpathentry kind="output" path="build/classes"/>
 </classpath>
202108/src/main/java/study/DB.java
--- 202108/src/main/java/study/DB.java
+++ 202108/src/main/java/study/DB.java
@@ -13,14 +13,14 @@
 	ResultSet ps = null;
 	
 	// 데이터베이스 연결관련 정보를 문자열로 선언
-	String driver = "org.mariadb.jdbc.Driver";
-	String url = "jdbc:mariadb://localhost:3306/mydb";
+	String driver = "com.mysql.jdbc.Driver";
+	String url = "jdbc:mysql://db.asin21.com:3306/db_demo07";
 	
 	
 	public void conn() {
 		try {
 			Class.forName(driver);
-			conn = DriverManager.getConnection(url, "root", "1234");
+			conn = DriverManager.getConnection(url, "demo07", "demo07!");
 			System.out.println("Database Connect Success!!");
 		} catch (Exception e) {
 			e.printStackTrace();
Add a comment
List