随笔分类 - Spring boot
摘要:spring: datasource: db1: driver-class-name: com.mysql.cj.jdbc.Driver jdbc-url: jdbc:mysql://127.0.0.1:3306/db1 username: root password: root db2: driv
阅读全文
摘要:用eclipse(需要用高版本,要不然弄不出来):new →Spring Sarter Project 用IDEA:一般默认 一般默认 入门级的先 剩下的一般默认。。。 一、项目至少有下面的东西,里面一共俩类,带test的是测试类 二、先看依赖pom,点开依赖看下就发现为啥不用自己配置基本pom文件
阅读全文
摘要:(翻译看个人意愿) 官方介绍: Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". springboot 会让你非常容
阅读全文
摘要:在pom中直接引入依赖 设置以下两项(第一项如已设置直接设置第二项) 1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。 2) 组合键:“S
阅读全文