server:
port: 8080
spring:
application:
#应用名称 , 可选
name: reggie_take_out
datasource:
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/reggie?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
mybatis-plus:
configuration:
#在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射 address_book ---> AddressBook
map-underscore-to-camel-case: true
#日志输出
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: ASSIGN_ID
1 boot程序内置Tomcat服务器
2 yml配置文件可以指定该应用程序的名称和容器的端口
3 lombok中-@Slf4j工具
4 spring架构学习-IOC/DI*AOP*Spring JDBC*spring mvc*spring boot
5 mybatis事务管理分为两大类 JDBC*Management
6 Mysql内置有事务管理
7 spring有整合mybatis的事务管理(Management)
8 spring依赖 spring-context
9 spring配置文件 applicationContext.xml
10 spring默认反射构造方法实例化对象
11 spring配置文件 bean定义 <bean id= name= class= scope= />
12 spring配置文件 bean中定义属性 <properties name= ref/value= />
13 spring加载IOC容器接口类为ApplicationContext 默认配置方式用ClassPathXml接口实现多态
14 spring框架实例化对象方式除了10中反射构造外还有静态工厂和实例工厂和实例工厂变种