l ๐Ÿค– ์ฝ”๋“œ l

์Šคํ”„๋ง ms-sql ์—ฐ๋™ํ•˜๋Š”๋ฒ•

์ฝ”๋“œ๊ทธ๋ฆผ 2020. 5. 26.
๋ฐ˜์‘ํ˜•

์Šคํ”„๋ง์—์„œ ms-sql ์—ฐ๋™ํ•ด์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ•!!

 

 

 

์ œ ํ”„๋กœ์ ํŠธ์˜ ํ•˜์œ„๊ตฌ์กฐ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 

 

 

 

1. pom.xml ์„ค์ •

 

- pom.xml์— ๋‚ด๊ฐ€ ๋ฐ›์€ mssql-jdbc์™€ ๊ฐ™์€ ๋ฒ„์ „์˜ jre๋ฅผ dependency๋ฅผ ๋„ฃ์–ด์ค๋‹ˆ๋‹ค.

 

 

 

 

 

****************************************************************************************************************************

๋ฒ„์ „ dependency ๊ฒ€์ƒ‰์€ ์•„๋ž˜์˜ ์ฃผ์†Œ์—์„œ ์ฐธ๊ณ ํ•˜์„ธ์šฉ.

https://mvnrepository.com/

 

 

Maven Repository: Search/Browse/Explore

An Apache HttpClient wrapper providing Metrics instrumentation of connection pools, request durations and rates, and other useful information. Last Release on May 24, 2020

mvnrepository.com

 

ms-sql๊ณผ ์ดํด๋ฆฝ์Šค๋ฅผ ์—ฐ๋™ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” jdbc.jar๊ฐ€ ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค! 

์—†์œผ์‹œ๋‹ค๋ฉด ์•„๋ž˜์˜ ๋งํฌ์—์„œ ๋‹ค์šด๋ฐ›์•„ ์ฃผ์„ธ์š”. 

https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15

 

Microsoft JDBC Driver for SQL Server - SQL Server

Microsoft provides a JDBC driver for use with SQL Server and Azure SQL Database, enabling connectivity from any Java application, server, or applet.

docs.microsoft.com

๋” ์ž์„ธํ•œ ์‚ฌํ•ญ์ด ์•Œ๊ณ ์‹ถ์œผ์‹œ๋‹ค๋ฉด ์•„๋ž˜์˜ ๊ธ€์„ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.

https://321coucou.tistory.com/20?category=869148

 

์ดํด๋ฆฝ์Šค mssql ์—ฐ๋™ํ•˜๊ธฐ

1. jdbc ๋“œ๋ผ์ด๋ฒ„๋ฅผ ๋‹ค์šด๋ฐ›์•„์ค๋‹ˆ๋‹ค. https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15 Microsoft JDBC Driver for SQL Server - SQL Server Micr..

321coucou.tistory.com

******************************************************************************************************************************

 

 

 

 

 

 

2. applicationContext.xml ์„ค์ •

 

 

 

 

 

3. db.properties ์„ค์ •

 

 

 

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์—ฐ๋™์€ ๋!

์ด์ œ mapper๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๊ฐ’๋“ค์„ ๋„ฃ๊ณ ๋นผ๊ณ  ํ•ด์ค˜์•ผํ•ด์š”.

 

๊ฐˆ๊ธธ์ด ๋ฉ€๋‹ค ใ… ใ… 

 

์ž์„ธํ•œ ์ฝ”๋“œ๊ฐ€ ๊ถ๊ธˆํ•˜์‹œ๋‹ค๋ฉด ์•„๋ž˜์˜ ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ๋ฅผ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.

github.com/Joowon0220/Spring_Weather.git

 

Joowon0220/Spring_Weather

์Šคํ”„๋ง, ๊ธฐ์ƒ์ฒญ ๋‚ ์”จAPI, Ms-sql. Contribute to Joowon0220/Spring_Weather development by creating an account on GitHub.

github.com

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€

๐Ÿ’ฒ ์ถ”์ฒœ ๊ธ€