{"id":26570,"date":"2024-10-27T10:53:16","date_gmt":"2024-10-27T10:53:16","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26570"},"modified":"2024-11-26T07:37:34","modified_gmt":"2024-11-26T07:37:34","slug":"%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%97%94%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ec%8a%a4%ed%94%84%eb%a7%81-%eb%8d%b0%ec%9d%b4%ed%84%b0-jpa%eb%9e%80","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26570\/","title":{"rendered":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780"},"content":{"rendered":"<p><body><\/p>\n<article>\n<header>\n<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \ud575\uc2ec\uc801\uc778 \uc5ed\ud560\uc744 \ub2f4\ub2f9\ud558\ub294 \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc5d0 \ub300\ud574 \uc0c1\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. JPA\ub294 \uc790\ubc14 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 ORM(Object-Relational Mapping) \uae30\uc220\uc785\ub2c8\ub2e4.<\/p>\n<\/header>\n<section>\n<h2>1. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780?<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\uc640 JPA(Java Persistence API)\ub97c \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \ub354 \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ub9cc\ub4e0 \ubaa8\ub4c8\uc785\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c JPA\ub97c \uc0ac\uc6a9\ud560 \ub54c \uadc0\ucc2e\uc740 \uc124\uc815\uacfc \ucf54\ub4dc\ub97c \ucd5c\uc18c\ud654\ud558\uace0, \uac1c\ubc1c\uc790\uac00 \ubcf4\ub2e4 \uc801\uc740 \ub178\ub825\uc73c\ub85c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<p>JPA\ub294 \uc5d4\ud2f0\ud2f0 \ud074\ub798\uc2a4\uc640 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud14c\uc774\ube14 \uac04\uc758 \ub9e4\ud551\uc744 \uc9c0\uc6d0\ud558\ub294\ub370, \uc774\ub97c \ud1b5\ud574 SQL \ucffc\ub9ac \uc5c6\uc774\ub3c4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc27d\uac8c \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 JPA\uc758 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uc81c\uacf5\ud558\uc5ec \uac1c\ubc1c\uc790\uac00 \uc2e4\uc81c\ub85c \ud65c\uc6a9\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>2. JPA\uc758 \uae30\ubcf8 \uac1c\ub150<\/h2>\n<h3>2.1 ORM\uc774\ub780?<\/h3>\n<p>ORM(Object-Relational Mapping)\uc740 \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uac1d\uccb4\uc640 \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uac04\uc758 \ub370\uc774\ud130 \ubcc0\ud658\uc744 \uc790\ub3d9\uc73c\ub85c \ucc98\ub9ac\ud574\uc8fc\ub294 \uae30\uc220\uc785\ub2c8\ub2e4. \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ud14c\uc774\ube14 \uad6c\uc870\ub85c \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\ub294 \ubc18\uba74, \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub294 \ud074\ub798\uc2a4\uc640 \uac1d\uccb4\ub85c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud569\ub2c8\ub2e4. ORM\uc740 \uc774 \ub450 \uac00\uc9c0 \uac04\uadf9\uc744 \uba54\uc6cc\uc8fc\ub294 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.<\/p>\n<h3>2.2 JPA\uc758 \uc815\uc758<\/h3>\n<p>JPA(Java Persistence API)\ub294 \uc790\ubc14 \uc9c4\uc601\uc5d0\uc11c ORM\uc744 \uc704\ud55c \uc778\ud130\ud398\uc774\uc2a4\uc785\ub2c8\ub2e4. JPA\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc791\uc5c5\uc5d0 \ud544\uc694\ud55c API\ub97c \uc815\uc758\ud558\uc5ec \uac1c\ubc1c\uc790\uac00 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\uc2b5\ub2c8\ub2e4. JPA\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \uac1c\ub150\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc5d4\ud2f0\ud2f0(Entity):<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \ud14c\uc774\ube14\uacfc \ub9e4\ud551\ub418\ub294 \uc790\ubc14 \ud074\ub798\uc2a4\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8(Persistence Context):<\/strong> \uc5d4\ud2f0\ud2f0\uc758 \uc0dd\uba85 \uc8fc\uae30\ub97c \uad00\ub9ac\ud558\ub294 \ud658\uacbd\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uc2dd\ubcc4\uc790(Identifier):<\/strong> \uc5d4\ud2f0\ud2f0\ub97c \uad6c\ubd84\ud558\uae30 \uc704\ud55c \uace0\uc720\ud55c \uac12\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\ucffc\ub9ac(Query):<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \ub300\ud55c \uc694\uccad\uc744 \ud45c\ud604\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>3. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc758 \ud2b9\uc9d5<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 JPA\uc758 \uae30\ub2a5\uc744 \ud655\uc7a5\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \ud2b9\uc9d5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \ud328\ud134:<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud55c \uc778\ud130\ud398\uc774\uc2a4\ub97c \uc815\uc758\ud558\uc5ec, CRUD \uc791\uc5c5\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ucffc\ub9ac \uba54\uc11c\ub4dc:<\/strong> \uba54\uc11c\ub4dc \uc774\ub984\uc73c\ub85c \ucffc\ub9ac\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc5b4, SQL \ucffc\ub9ac\ub97c \uc9c1\uc811 \uc791\uc131\ud558\uc9c0 \uc54a\uace0\ub3c4 \ubcf5\uc7a1\ud55c \ucffc\ub9ac\ub97c \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ud398\uc774\uc9c0\ub124\uc774\uc158 \ubc0f \uc815\ub82c:<\/strong> \ub370\uc774\ud130\ub97c \ud398\uc774\uc9c0 \ub2e8\uc704\ub85c \ub098\ub204\uac70\ub098 \uc815\ub82c\ud558\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac:<\/strong> \uc2a4\ud504\ub9c1\uc758 \ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac \uae30\ub2a5\uacfc \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>4. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA \ud658\uacbd \uc124\uc815<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1 Maven \uc758\uc874\uc131 \ucd94\uac00<\/h3>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub97c \ud504\ub85c\uc81d\ud2b8\uc5d0 \ucd94\uac00\ud558\uae30 \uc704\ud574 pom.xml \ud30c\uc77c\uc5d0 \ub2e4\uc74c \uc758\uc874\uc131\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;\/artifactId&gt;\n&lt;\/dependency&gt;\n\n&lt;dependency&gt;\n    &lt;groupId&gt;com.h2database&lt;\/groupId&gt;\n    &lt;artifactId&gt;h2&lt;\/artifactId&gt;\n    &lt;scope&gt;runtime&lt;\/scope&gt;\n&lt;\/dependency&gt;<\/code>\n            <\/pre>\n<h3>4.2 application.properties \uc124\uc815<\/h3>\n<p>\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744 \uc704\ud574 application.properties \ud30c\uc77c\uc5d0 \ub2e4\uc74c\uacfc \uac19\uc740 \uc124\uc815\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>spring.datasource.url=jdbc:h2:mem:testdb\nspring.datasource.driver-class-name=org.h2.Driver\nspring.datasource.username=sa\nspring.datasource.password=password\nspring.h2.console.enabled=true\nspring.jpa.hibernate.ddl-auto=update<\/code>\n            <\/pre>\n<\/section>\n<section>\n<h2>5. \uc5d4\ud2f0\ud2f0 \ud074\ub798\uc2a4 \ubc0f \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \uc0dd\uc131<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 \uc5d4\ud2f0\ud2f0 \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud558\uace0, \uc774\ub97c \ub2e4\ub8e8\uae30 \uc704\ud55c \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<h3>5.1 \uc5d4\ud2f0\ud2f0 \ud074\ub798\uc2a4 \uc815\uc758<\/h3>\n<p>\uc544\ub798\ub294 \uac04\ub2e8\ud55c &#8216;User&#8217; \uc5d4\ud2f0\ud2f0\ub97c \uc815\uc758\ud55c \uc608\uc785\ub2c8\ub2e4:<\/p>\n<pre>\n<code>import javax.persistence.*;\n\n@Entity\n@Table(name=\"users\")\npublic class User {\n    @Id\n    @GeneratedValue(strategy = GenerationType.IDENTITY)\n    private Long id;\n\n    private String name;\n    private String email;\n\n    \/\/ Getters and Setters\n}<\/code>\n            <\/pre>\n<h3>5.2 \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \uc778\ud130\ud398\uc774\uc2a4 \uc815\uc758<\/h3>\n<p>\ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \uc778\ud130\ud398\uc774\uc2a4\ub294 JpaRepository\ub97c \uc0c1\uc18d\ubc1b\uc544 CRUD \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>import org.springframework.data.jpa.repository.JpaRepository;\n\npublic interface UserRepository extends JpaRepository&lt;User, Long&gt; {\n    User findByEmail(String email);\n}<\/code>\n            <\/pre>\n<\/section>\n<section>\n<h2>6. \uc11c\ube44\uc2a4 \ud074\ub798\uc2a4 \ubc0f \ucee8\ud2b8\ub864\ub7ec \uc0dd\uc131<\/h2>\n<p>\ub9ac\ud3ec\uc9c0\ud1a0\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucc98\ub9ac\ud558\ub294 \uc11c\ube44\uc2a4 \ud074\ub798\uc2a4\uc640 \uc774\ub97c \ud638\ucd9c\ud558\ub294 REST API\ub97c \uad6c\ud604\ud558\ub294 \ucee8\ud2b8\ub864\ub7ec \ud074\ub798\uc2a4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<h3>6.1 \uc11c\ube44\uc2a4 \ud074\ub798\uc2a4 \uc815\uc758<\/h3>\n<pre>\n<code>import org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport java.util.List;\n\n@Service\npublic class UserService {\n    @Autowired\n    private UserRepository userRepository;\n\n    public List&lt;User&gt; findAll() {\n        return userRepository.findAll();\n    }\n\n    public User findById(Long id) {\n        return userRepository.findById(id).orElse(null);\n    }\n\n    public User save(User user) {\n        return userRepository.save(user);\n    }\n}<\/code>\n            <\/pre>\n<h3>6.2 \ucee8\ud2b8\ub864\ub7ec \ud074\ub798\uc2a4 \uc815\uc758<\/h3>\n<pre>\n<code>import org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.util.List;\n\n@RestController\n@RequestMapping(\"\/api\/users\")\npublic class UserController {\n    @Autowired\n    private UserService userService;\n\n    @GetMapping\n    public List&lt;User&gt; getAllUsers() {\n        return userService.findAll();\n    }\n\n    @PostMapping\n    public User createUser(@RequestBody User user) {\n        return userService.save(user);\n    }\n}<\/code>\n            <\/pre>\n<\/section>\n<section>\n<h2>7. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc758 \uc0ac\uc6a9 \uc608\uc2dc<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub97c \ud1b5\ud574 \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc5b4\ub5bb\uac8c \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\ub294\uc9c0\uc5d0 \ub300\ud55c \uc608\uc2dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>7.1 \uc0ac\uc6a9\uc790 \uc0dd\uc131 \uc694\uccad<\/h3>\n<p>\uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud574 REST API \uc694\uccad\uc744 \ubcf4\ub0c5\ub2c8\ub2e4:<\/p>\n<pre>\n<code>POST \/api\/users\nContent-Type: application\/json\n\n{\n    \"name\": \"\ud64d\uae38\ub3d9\",\n    \"email\": \"hong@example.com\"\n}<\/code>\n            <\/pre>\n<h3>7.2 \uc0ac\uc6a9\uc790 \uc870\ud68c \uc694\uccad<\/h3>\n<p>\ud2b9\uc815 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \uc870\ud68c\ud558\ub294 \uc694\uccad\uc744 \ubcf4\ub0c5\ub2c8\ub2e4:<\/p>\n<pre>\n<code>GET \/api\/users\/1<\/code>\n            <\/pre>\n<p>\uc704\uc758 \uc694\uccad\uc744 \ud1b5\ud574 ID\uac00 1\uc778 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c JSON \ud615\ud0dc\ub85c \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>8. \uc131\ub2a5 \ucd5c\uc801\ud654<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub97c \uc0ac\uc6a9\ud560 \ub54c \uc131\ub2a5 \uc774\uc288\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud55c \uba87 \uac00\uc9c0 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>8.1 N+1 \ubb38\uc81c \ud574\uacb0<\/h3>\n<p>N+1 \ubb38\uc81c\ub294 \uc5f0\uad00\ub41c \uc5d4\ud2f0\ud2f0\ub97c \ucffc\ub9ac\ud560 \ub54c \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 FetchType.LAZY\uc640 FetchType.EAGER\ub97c \uc801\uc808\ud788 \ud65c\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>8.2 \ubc30\uce58 \ucc98\ub9ac<\/h3>\n<p>\ub370\uc774\ud130\uac00 \ub9ce\uc744 \uacbd\uc6b0 \ubc30\uce58 \ucc98\ub9ac\ub97c \ud1b5\ud574 \uc131\ub2a5\uc744 \uac1c\uc120\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ud55c \ubc88\uc5d0 \ub300\ub7c9\uc758 \ub370\uc774\ud130\ub97c \ucc98\ub9ac\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \ubd80\ud558\ub97c \uc904\uc774\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>9. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c \ud575\uc2ec\uc801\uc778 \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc5d0 \ub300\ud55c \uac1c\ub150\uacfc \uc0ac\uc6a9\ubc95, \uadf8\ub9ac\uace0 \ud658\uacbd \uc124\uc815 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \ud1b5\uc2e0\uc744 \ub2e8\uc21c\ud654\ud558\uace0, \uac1c\ubc1c\uc790\uc758 \uc0dd\uc0b0\uc131\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ucf1c\uc8fc\ub294 \ub3c4\uad6c\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc758 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ub354\uc6b1 \ud6a8\uc728\uc801\uc778 \ubc31\uc5d4\ub4dc \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud574\ubcf4\uc138\uc694. \ucd94\uac00\uc801\uc778 \uc9c8\ubb38\uc774\ub098 \ud53c\ub4dc\ubc31\uc774 \uc788\uc73c\uc2dc\uba74 \ub313\uae00\ub85c \ub0a8\uaca8\uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \ud575\uc2ec\uc801\uc778 \uc5ed\ud560\uc744 \ub2f4\ub2f9\ud558\ub294 \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc5d0 \ub300\ud574 \uc0c1\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. JPA\ub294 \uc790\ubc14 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 ORM(Object-Relational Mapping) \uae30\uc220\uc785\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780? \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\uc640 JPA(Java Persistence API)\ub97c \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \ub354 \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26570\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-26570","post","type-post","status-publish","format-standard","hentry","category-21"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/26570\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \ud575\uc2ec\uc801\uc778 \uc5ed\ud560\uc744 \ub2f4\ub2f9\ud558\ub294 \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc5d0 \ub300\ud574 \uc0c1\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. JPA\ub294 \uc790\ubc14 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 ORM(Object-Relational Mapping) \uae30\uc220\uc785\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780? \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\uc640 JPA(Java Persistence API)\ub97c \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \ub354 \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26570\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:53:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:37:34+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780\",\"datePublished\":\"2024-10-27T10:53:16+00:00\",\"dateModified\":\"2024-11-26T07:37:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/\"},\"wordCount\":79,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26570\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:53:16+00:00\",\"dateModified\":\"2024-11-26T07:37:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26570\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26570\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/26570\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \ud575\uc2ec\uc801\uc778 \uc5ed\ud560\uc744 \ub2f4\ub2f9\ud558\ub294 \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\uc5d0 \ub300\ud574 \uc0c1\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. JPA\ub294 \uc790\ubc14 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 ORM(Object-Relational Mapping) \uae30\uc220\uc785\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780? \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\uc640 JPA(Java Persistence API)\ub97c \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \ub354 \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780\"","og_url":"https:\/\/atmokpo.com\/w\/26570\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:53:16+00:00","article_modified_time":"2024-11-26T07:37:34+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26570\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26570\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780","datePublished":"2024-10-27T10:53:16+00:00","dateModified":"2024-11-26T07:37:34+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26570\/"},"wordCount":79,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/26570\/","url":"https:\/\/atmokpo.com\/w\/26570\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:53:16+00:00","dateModified":"2024-11-26T07:37:34+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26570\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26570\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26570\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \ub370\uc774\ud130 JPA\ub780"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":26620,"url":"https:\/\/atmokpo.com\/w\/26620\/","url_meta":{"origin":26570,"position":0},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3, \ud68c\uc6d0 \uac00\uc785 \uad6c\ud604, \uc758\uc874\uc131 \ucd94\uac00\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0 \uad00\ud55c \uae30\ubcf8\uc801\uc778 \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\uace0, \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778, \ub85c\uadf8\uc544\uc6c3, \ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780? \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc2a4\ud504\ub9c1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub354\uc6b1 \uc27d\uac8c \uc124\uc815\ud558\uace0 \uc2e4\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc124\uc815 \uacfc\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0, \ub0b4\uc7a5\ud615 \uc11c\ubc84\ub97c\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26432,"url":"https:\/\/atmokpo.com\/w\/26432\/","url_meta":{"origin":26570,"position":1},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \uc758\uc874\uc131 \ucd94\uac00\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc800\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: [\ud604\uc7ac \ub0a0\uc9dc] 1. \uc11c\ub860 \ud604\ub300 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \ubd80\uc5ec\ub97c \uc704\ud574 OAuth2 \ud504\ub85c\ud1a0\ucf5c\uc744 \ub9ce\uc774 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc774 \ud504\ub85c\ud1a0\ucf5c\uc740 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc548\uc804\ud558\uace0 \uc720\uc5f0\ud55c \ubc29\uc2dd\uc73c\ub85c \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec OAuth2\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc548\ub0b4\ud569\ub2c8\ub2e4. 2. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26670,"url":"https:\/\/atmokpo.com\/w\/26670\/","url_meta":{"origin":26570,"position":2},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc81c\uc5b4\uc758 \uc5ed\uc804\uacfc \uc758\uc874\uc131 \uc8fc\uc785","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \uc790\ubc14 \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc2e0\uc18d\ud558\uac8c \ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc758 \ud575\uc2ec \uac1c\ub150 \uc911 \ud558\ub098\uc778 \uc81c\uc5b4\uc758 \uc5ed\uc804(Inversion of Control, IoC)\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 \uac1c\ub150\uc740 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc870\ub97c \uc5b4\ub5bb\uac8c \uc124\uacc4\ud558\uace0\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38574,"url":"https:\/\/atmokpo.com\/w\/38574\/","url_meta":{"origin":26570,"position":3},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc571\uc5d0\uc11c DB\uc5d0 \uc811\uc18d\ud558\uae30 \uc704\ud55c \uc900\ube44","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"FastAPI\ub294 \ucd5c\uc2e0 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, \uace0\uc131\ub2a5\uacfc \ube60\ub978 \uac1c\ubc1c \uc18d\ub3c4\ub97c \uc790\ub791\ud558\uba70 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\uc5ec \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc62c\ubc14\ub978 \ubc29\ubc95\uc73c\ub85c DB\uc640 \uc5f0\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \uc900\ube44 \ub2e8\uacc4\uc640 \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc2e4\uc2b5\ud560 \uc218 \uc788\ub3c4\ub85d \uc900\ube44\ud588\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38432,"url":"https:\/\/atmokpo.com\/w\/38432\/","url_meta":{"origin":26570,"position":4},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc774\ubca4\ud2b8 \ubb38\uc11c \ud074\ub798\uc2a4\uc640 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. FastAPI\ub780? FastAPI\ub294 Python\uc758 \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, API \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uac15\ub825\ud55c \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. FastAPI\ub294 \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0 \ub2e4\uc591\ud55c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\ud569\ud558\uba70, OpenAPI\uc640 JSON Schema\ub97c \uc9c0\uc6d0\ud558\uc5ec \uc790\ub3d9\uc73c\ub85c API \ubb38\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud2b9\uc9d5 \ub355\ubd84\uc5d0 FastAPI\ub294\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41939,"url":"https:\/\/atmokpo.com\/w\/41939\/","url_meta":{"origin":26570,"position":5},"title":"017. SaaS \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc544\ud0a4\ud14d\ucc98, API \uc124\uacc4\uc640 \uad00\ub9ac","author":"root","date":"2024\ub144 11\uc6d4 08\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 30\uc77c \uc800\uc790: \uc870\uad11\ud615 1. SaaS\ub780? SaaS(Software as a Service)\ub294 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \ud638\uc2a4\ud305\ub418\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc778\ud130\ub137\uc744 \ud1b5\ud574 \uc81c\uacf5\ud558\ub294 \ubaa8\ub378\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\ub97c \ub85c\uceec\ub85c \uc124\uce58\ud558\uace0 \uad00\ub9ac\ud560 \ud544\uc694 \uc5c6\uc774 \uc6f9 \ube0c\ub77c\uc6b0\uc800\ub97c \ud1b5\ud574 \ubc14\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc811\uadfc \ubc29\uc2dd\uc740 \uc0ac\uc6a9\uc790\uc5d0\uac8c \ub192\uc740 \uc720\uc5f0\uc131\uacfc \ube44\uc6a9 \ud6a8\uc728\uc131\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 2. SaaS \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc544\ud0a4\ud14d\ucc98 SaaS \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc544\ud0a4\ud14d\ucc98\ub294\u2026","rel":"","context":"&quot;Saas&quot;\uc5d0\uc11c","block_context":{"text":"Saas","link":"https:\/\/atmokpo.com\/w\/category\/saas\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=26570"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26570\/revisions"}],"predecessor-version":[{"id":26571,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26570\/revisions\/26571"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}