随笔分类 -  spring boot

摘要:一、添加配置 /** * 跨域配置 */ @Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) 阅读全文
posted @ 2021-11-02 13:08 吕林光 阅读(17) 评论(0) 推荐(0) 编辑
摘要:一、目录结构 二、pom文件 增加mybatis插件 增加sqlserver驱动 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <ver 阅读全文
posted @ 2021-11-02 13:00 吕林光 阅读(2457) 评论(0) 推荐(0) 编辑
摘要:一、构建springboot项目 1、新建springboot项目 略。。。 2、新建Dockerfile 在项目目录下新建Dockerfile文件,文件没有扩展名 # jdk版本 FROM moxm/java:1.8-full # 临时文件目录 VOLUME /tmp # 把demo-0.0.1- 阅读全文
posted @ 2021-10-25 17:46 吕林光 阅读(1038) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示