博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Spring Boot开发通用代码
阅读量:4220 次
发布时间:2019-05-26

本文共 2583 字,大约阅读时间需要 8 分钟。

Spring Boot yml配置文件:

server:  port: 端口号  servlet:    context-path: /spring:  datasource:    url: jdbc:mysql:///数据库名?serverTimezone=GMT%2B8&charactEncoding=编码类型    username: 数据库用户名    password: 数据库密码  thymeleaf:    prefix: classpath:页面地址    cache: 缓存(开发环境false,生产环境true)mybatis:  configuration:    default-statement-timeout: 60    map-underscore-to-camel-case: true  mapper-locations:    - classpath:Mapper文件的路径logging:  level:    com.cy: 日志等级

POM文件:

4.0.0
org.springframework.boot
spring-boot-starter-parent
2.3.1.RELEASE
组名
名称
0.0.1-SNAPSHOT
名称
描述
JDK版本
org.springframework.boot
spring-boot-starter-actuator
org.springframework.boot
spring-boot-starter-jdbc
org.springframework.boot
spring-boot-starter-thymeleaf
org.springframework.boot
spring-boot-starter-web
org.mybatis.spring.boot
mybatis-spring-boot-starter
2.1.2
org.springframework.boot
spring-boot-devtools
runtime
true
mysql
mysql-connector-java
runtime
org.projectlombok
lombok
true
org.springframework.boot
spring-boot-starter-test
test
org.junit.vintage
junit-vintage-engine
org.springframework.boot
spring-boot-maven-plugin

 

转载地址:http://fbmmi.baihongyu.com/

你可能感兴趣的文章
安卓使用okhttp上传文件,服务端PHP接收
查看>>
51单片机:设计有四位数码管,设计3个按键,k1,k2,k3;k1为模式键,第一次按下,显示初始值,k2,k3有效,k2按一次初值加1,k3按一次初值减1;k1第二次按下停止;k1第三次按下清零;
查看>>
安卓:阿里逆地理编码,可直接拿去用
查看>>
thinkphp源码没问题却各种报错,Namespace declaration statement has to be the very first statement in the script
查看>>
android:dkplayer中ijkplayer延迟长的问题,达到秒开的结果
查看>>
安卓:okhttp请求,获取返回数据
查看>>
安卓:股票筛选及分析系统
查看>>
Effective Java 学习笔记一 Object的方法
查看>>
使用 ctypes 进行 Python 和 C 的混合编程
查看>>
用scikit-learn学习DBSCAN聚类
查看>>
机器学习:Python实现聚类算法(三)之总结
查看>>
使用sklearn做单机特征工程
查看>>
Python 多线程技巧 用threading.Event代替time.sleep()
查看>>
工具】Cmake与gcc的关系
查看>>
struct中长度为0的数组用途与原理
查看>>
svm笔记
查看>>
C++ 继承&多态
查看>>
C++多继承的观察和7点体会(都是实用派的观点) good
查看>>
python socket编程详细介绍
查看>>
高人对libsvm的经典总结(全面至极)
查看>>