随笔分类 -  springBoot

摘要:正确方法: /** * *@author:sawsh * *@date:2021/3/8 * *@Description: **/ import com.sawsh.StartApplication; import com.sawsh.entity.User; import com.sawsh.ma 阅读全文
posted @ 2021-03-08 17:13 Lost blog 阅读(831) 评论(0) 推荐(0) 编辑
摘要:配置: application.yml spring: datasource: ####写数据源 update: jdbc-url: jdbc:mysql://192.168.100.150:8066/test driver-class-name: com.mysql.jdbc.Driver use 阅读全文
posted @ 2020-08-17 18:32 Lost blog 阅读(1148) 评论(0) 推荐(0) 编辑
摘要:config类: package com.cxf.config; import javax.xml.ws.Endpoint; import org.apache.cxf.Bus; import org.apache.cxf.bus.spring.SpringBus; import org.apach 阅读全文
posted @ 2020-03-31 16:56 Lost blog 阅读(726) 评论(0) 推荐(0) 编辑
摘要:pom.xml修改properties,增加这行 或者 将 改成 阅读全文
posted @ 2019-05-23 16:06 Lost blog 阅读(2021) 评论(0) 推荐(0) 编辑
摘要:启动类: 接口类: 实现类: 配置文件: 阅读全文
posted @ 2019-05-14 16:57 Lost blog 阅读(252) 评论(0) 推荐(0) 编辑
摘要:本文主要研究下springboot2的embeded container的配置改动 springboot 1.x springboot 2.x 小结 springboot1.x的相关类如下: org.springframework.boot.context.embedded.Configurable 阅读全文
posted @ 2019-05-14 16:53 Lost blog 阅读(1053) 评论(0) 推荐(0) 编辑
摘要:config配置: 静态文件的路径: 用静态方式去访问,http://localhost:8080/static/generateOrder.html 里面引用的路径为: 如果用http://localhost:7500/message去访问 原因:转发和重定向的区别之一是:采用转发,URL不会发生 阅读全文
posted @ 2019-04-18 10:29 Lost blog 阅读(2409) 评论(0) 推荐(0) 编辑
摘要:正常来说一个maven子项目的parent是父项目,而不是直接继承,这时候就需要改下配置 默认生成的代码入下: 更改之后的实例: 阅读全文
posted @ 2019-03-26 17:39 Lost blog 阅读(529) 评论(0) 推荐(0) 编辑
摘要:基本项目结构: Thymeleaf配置: spring默认的模板映射路径是:src/main/resources/templates ftl路径的hello.html: TestController: 运行结果: 要注意的点: spring.thymeleaf.cache要设置为true,以方便开发 阅读全文
posted @ 2019-02-27 16:47 Lost blog 阅读(158) 评论(0) 推荐(0) 编辑
摘要:maven中配置profile节点: spring boot application.properties文件中引用maven profile节点的值: 1.概述 按照项目开发的流程,项目工程需要经历开发人员本地测试环境(dev),进入测试阶段后有测试环境(test),测试无误后需要将程序发布到生产 阅读全文
posted @ 2019-02-27 15:28 Lost blog 阅读(370) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/qq447995687/article/details/78760546 阅读全文
posted @ 2018-09-30 17:46 Lost blog 阅读(804) 评论(0) 推荐(0) 编辑
摘要:spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/user?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.userna... 阅读全文
posted @ 2018-04-17 12:49 Lost blog 阅读(206) 评论(0) 推荐(0) 编辑





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