{"id":19890,"date":"2024-03-16T12:46:40","date_gmt":"2024-03-16T03:46:40","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/"},"modified":"2025-08-06T23:17:48","modified_gmt":"2025-08-06T14:17:48","slug":"springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/","title":{"rendered":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f"},"content":{"rendered":"<p>Spring Boot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b8c\u4e86\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>MyBatis\u304a\u3088\u3073\u95a2\u9023\u3059\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u8ffd\u52a0\uff1a\u6700\u521d\u306b\u3001`pom.xml`\u30d5\u30a1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u901a\u5e38\u3001\u3053\u308c\u306b\u306f`mybatis-spring-boot-starter`\u3068\u5bfe\u5fdc\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u30fc\u4f9d\u5b58\u95a2\u4fc2\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>`pom.xml`\u306e\u4e00\u90e8\uff1a<\/p>\n<pre class=\"post-pre\">&lt;dependencies&gt;<\/pre>\n<p>&lt;!&#8211;\u00a0MyBatis\u00a0&#8211;&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.mybatis.spring.boot&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;mybatis-spring-boot-starter&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;2.2.0&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;!&#8211;\u00a0\u6570\u636e\u5e93\u9a71\u52a8\u7a0b\u5e8f\u4f9d\u8d56\u9879\uff0c\u4f8b\u5982\u00a0<span class=\"in-link\" data-id=\"61\">MySQL<\/span>\u00a0&#8211;&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;mysql&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;mysql-connector-java&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;8.0.23&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;\/dependencies&gt;<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>`application.properties`\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9069\u5207\u306a\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002URL\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3092\u8a18\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u300capplication.properties\u300d\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\uff1a<\/p>\n<pre class=\"post-pre\">#\u00a0\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f<\/pre>\n<p>spring.datasource.url=jdbc:mysql:\/\/localhost:3306\/mydatabase<\/p>\n<p>spring.datasource.username=root<\/p>\n<p>spring.datasource.password=your_password<\/p>\n<p>spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver<\/p>\n<p>#\u00a0MyBatis\u914d\u7f6e<\/p>\n<p>mybatis.mapper-locations=classpath:mapper\/*.xml<\/p>\n<p>mybatis.type-aliases-package=com.example.model<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067`mydatabase`\u3092\u5b9f\u969b\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u7f6e\u304d\u63db\u3048\u3001\u6b63\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9aURL\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Spring Boot\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u69cb\u6210\u30af\u30e9\u30b9\u306b\u3001\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068SqlSessionFactory Bean\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8a2d\u5b9a\u30af\u30e9\u30b9\u306e\u4f8b\uff1a<\/p>\n<pre class=\"post-pre\">@Configuration<\/pre>\n<p>@MapperScan(&#8220;com.example.mapper&#8221;)\u00a0\/\/\u00a0\u6307\u5b9aMyBatis\u00a0Mapper\u63a5\u53e3\u7684\u626b\u63cf\u8def\u5f84<\/p>\n<p>public\u00a0class\u00a0MyBatisConfig\u00a0{<\/p>\n<p>@Autowired<\/p>\n<p>private\u00a0DataSource\u00a0dataSource;<\/p>\n<p>@Bean<\/p>\n<p>public\u00a0SqlSessionFactory\u00a0sqlSessionFactory()\u00a0throws\u00a0Exception\u00a0{<\/p>\n<p>SqlSessionFactoryBean\u00a0sessionFactory\u00a0=\u00a0new\u00a0SqlSessionFactoryBean();<\/p>\n<p>sessionFactory.setDataSource(dataSource);<\/p>\n<p>return\u00a0sessionFactory.getObject();<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067`com.example.mapper`\u3068\u3044\u3046\u90e8\u5206\u3092\u3001\u5b9f\u969b\u306eMapper\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5b58\u5728\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30de\u30c3\u30d1\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u5bfe\u5fdc\u3059\u308bXML\u30de\u30c3\u30d4\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u30de\u30c3\u30d1\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068XML\u30de\u30c3\u30d4\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u30bb\u30c3\u30c8\u3067\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002XML\u30de\u30c3\u30d4\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001SQL\u30af\u30a8\u30ea\u3068\u7d50\u679c\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u30eb\u30fc\u30eb\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Mapper\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\uff1a<\/p>\n<pre class=\"post-pre\">@Mapper<\/pre>\n<p>public\u00a0interface\u00a0UserMapper\u00a0{<\/p>\n<p>List&lt;User&gt;\u00a0getAllUsers();<\/p>\n<p>User\u00a0getUserById(Long\u00a0id);<\/p>\n<p>void\u00a0insertUser(User\u00a0user);<\/p>\n<p>void\u00a0updateUser(User\u00a0user);<\/p>\n<p>void\u00a0deleteUser(Long\u00a0id);<\/p>\n<p>}<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u30de\u30c3\u30d1\u30fcXML\u306e\u4f8b\u793a\u30d5\u30a1\u30a4\u30eb\uff08`UserMapper.xml`\uff09\uff1a<\/p>\n<pre class=\"post-pre\">&lt;?xml\u00a0version=\"1.0\"\u00a0encoding=\"UTF-8\"\u00a0?&gt;<\/pre>\n<p>&lt;!DOCTYPE\u00a0mapper\u00a0PUBLIC\u00a0&#8220;-\/\/mybatis.org\/\/DTD\u00a0Mapper\u00a03.0\/\/EN&#8221;<\/p>\n<p>&#8220;http:\/\/mybatis.org\/dtd\/mybatis-3-mapper.dtd&#8221;&gt;<\/p>\n<p>&lt;mapper\u00a0namespace=&#8221;com.example.mapper.UserMapper&#8221;&gt;<\/p>\n<p>&lt;select\u00a0id=&#8221;getAllUsers&#8221;\u00a0resultType=&#8221;com.example.model.User&#8221;&gt;<\/p>\n<p>SELECT\u00a0*\u00a0FROM\u00a0users<\/p>\n<p>&lt;\/select&gt;<\/p>\n<p>&lt;!&#8211;\u00a0\u5176\u4ed6SQL\u8bed\u53e5&#8230;\u00a0&#8211;&gt;<\/p>\n<p>&lt;\/mapper&gt;<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u306e\u4e2d\u306e`com.example.mapper.UserMapper`\u304a\u3088\u3073`com.example.model.User`\u306f\u3001\u5b9f\u969b\u306e\u30de\u30c3\u30d1\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>5. MyBatis\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u6240\u306b\u306f\u3001Mapper\u3092\u30a4\u30f3\u30b8\u30a7\u30af\u30c8\u3057\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff1a\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3084\u305d\u306e\u4ed6\u306e\u5834\u6240\u3067\u3001@Autowired\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066Mapper\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a4\u30f3\u30b8\u30a7\u30af\u30c8\u3057\u3001\u305d\u306e\u4e2d\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\uff1a<\/p>\n<pre class=\"post-pre\">@Service<\/pre>\n<p>public\u00a0class\u00a0UserService\u00a0{<\/p>\n<p>@Autowired<\/p>\n<p>private\u00a0UserMapper\u00a0userMapper;<\/p>\n<p>public\u00a0List&lt;User&gt;\u00a0getAllUsers()\u00a0{<\/p>\n<p>return\u00a0userMapper.getAllUsers();<\/p>\n<p>}<\/p>\n<p>\/\/\u00a0\u5176\u4ed6\u65b9\u6cd5&#8230;<\/p>\n<p>}<\/p>\n<pre class=\"post-pre\"><\/pre>\n<p>\u3053\u308c\u3067\u3001Spring Boot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3092\u62e1\u5f35\u304a\u3088\u3073\u8abf\u6574\u3057\u3066\u3001\u7279\u5b9a\u306e\u8981\u4ef6\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b8c\u4e86\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 MyBatis\u304a\u3088\u3073\u95a2\u9023\u3059\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u8ffd\u52a0\uff1a\u6700\u521d\u306b\u3001`pom.xml`\u30d5\u30a1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u901a\u5e38\u3001\u3053\u308c\u306b\u306f [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,18],"class_list":["post-19890","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-18"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/springboot\u3067mybatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\" \/>\n<meta property=\"og:description\" content=\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/springboot\u3067mybatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-16T03:46:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-06T14:17:48+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/\",\"name\":\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-16T03:46:40+00:00\",\"dateModified\":\"2025-08-06T14:17:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud","description":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/www.silicloud.com\/ja\/blog\/springboot\u3067mybatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\/","og_locale":"ja_JP","og_type":"article","og_title":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f","og_description":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/springboot\u3067mybatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-16T03:46:40+00:00","article_modified_time":"2025-08-06T14:17:48+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/","name":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-16T03:46:40+00:00","dateModified":"2025-08-06T14:17:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"SpringBoot\u3067MyBatis\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/springboot%e3%81%a7mybatis%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%e4%bd%95%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/19890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=19890"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/19890\/revisions"}],"predecessor-version":[{"id":97723,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/19890\/revisions\/97723"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=19890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=19890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=19890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}