springboot
springboot的学习
tang_xin_cdsn
这个作者很懒,什么都没留下…
展开
-
vue 表单验证 html input
如果 你用vue 或者 element 的ui 去验证发现很麻烦。如果 你只想简单验证:其实html 自带了验证:这里 required 就是必填,pattern就是正则规作者:古红平链接:https://www.zhihu.com/question/37099220/answer/81969475来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。去 搜索一下 属性就知道了。https://www.w3schools.com/...原创 2020-10-11 23:11:57 · 439 阅读 · 0 评论 -
springboot @RequestBody bean 对象 为空问题
确认 数据是传入f12 。fiddlerdebug改为字符串接收确认了是接收到了。关键是spring没有报错spring 内置jackjsonstartweb 中。debug进源码 ,新的世界打开 spring debug 级别输出确实有东西收到了。是转换的时候出问题实在 不行用第三方的手动转。加了pom jackjson依赖,这下有有错了:Unrecognized field , not marked as ignorable百度一下。ja..原创 2020-10-11 19:19:24 · 2195 阅读 · 0 评论 -
mybatis一些细节
项目过程记录如果你要整合springboot你可能会去看中文官网 ,但是我建议看一下 英语版的,或许有些不一样的。http://mybatis.org/spring/mappers.html#scanhttps://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/如果你是多模块的,要注意一下:classpath: 和 classpath* 的区别 。加星的是包括lib的你可以maven 打包看下 ,targ转载 2020-10-09 21:58:39 · 103 阅读 · 0 评论 -
springport application.yaml端口
51As explained in Spring documentation, there are several ways to do that:Either you set the port in the command line (for example 8888)-Dserver.port=8888 or --server.port=8888Example : java -jar -Dserver.port=8888 test.jarOr you set the port in the a原创 2020-10-08 21:06:20 · 325 阅读 · 0 评论 -
Jenkins springboot maven kotlin java混合 不混合的多模块 问题总结有点小坑
搞了一天,心累。idea 打包没有问题。难道idea 这么智能吗?错误/var/jenkins_home/workspace/kunpengshetuan/app/src/main/java/kunpeng/App.java:[7,19] package POJO does not exist[ERROR] /var/jenkins_home/workspace/kunpengshetuan/app/src/main/java/kunpeng/App.java:[7,1] static imp原创 2020-10-07 10:33:10 · 1155 阅读 · 0 评论 -
spring controller一些写法
//@RestController 等于 @Controller + @ResponseBody REST风格 @Controller@RequestMapping("/")public class mainController { @RequestMapping("/")public @ResponseBody String Helloword(){//@ResponseBody 数据写进body里。 return "helloworld. this is from con原创 2020-09-29 22:33:27 · 367 阅读 · 0 评论 -
@EnableAsync annotation metadata was not injected AnnotationConfigApplicationContext
错误解读Exception encountered during context initialization - cancelling refresh attempt: (在创建context 初始化时错误 )org.springframework.beans.factory.BeanCreationException:(创建beans错误) Error creating bean with ...原创 2020-04-21 20:17:35 · 458 阅读 · 0 评论 -
springboot从零开始,快捷键 快捷操作
首先建一个maven 工程idea main方法的快捷键是psvm 回车。maven 导入包,官方网站有创建一个启动类。用注解。ctrl alt L 是代码修改快捷键。/在创建类的时候输入包名。加文件名,可以自动创建该包...原创 2020-02-08 18:16:27 · 3065 阅读 · 0 评论