对对对~

2022年3月10日

org.springframework.mail.MailAuthenticationException: Authentication failed---->springboot定时发送邮件授权码错误

摘要: mail: username: wenjie__email@163.com password: bCBMKKQBFOIDQVCU host: smtp.163.com password:授权码报错,修改后: 阅读全文

posted @ 2022-03-10 19:45 NOMA~ 阅读(165) 评论(0) 推荐(0) 编辑

Spring-bootz开发中util类缺少注解@Component引起空指针

摘要: util工具类 package com.javasm.boot.common.utils; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; 阅读全文

posted @ 2022-03-10 18:02 NOMA~ 阅读(73) 评论(0) 推荐(0) 编辑

2022年2月28日

maven-pom配置 maven-jetty插件出现端口已被占用

摘要: maven-pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i 阅读全文

posted @ 2022-02-28 22:07 NOMA~ 阅读(99) 评论(0) 推荐(0) 编辑

2022年2月24日

疑惑 get可用,post出现405--The method received in the request-line is known by the origin server but not supported by the target resource.

摘要: package com.noma.springmvc.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org. 阅读全文

posted @ 2022-02-24 23:51 NOMA~ 阅读(485) 评论(0) 推荐(0) 编辑

2022年2月22日

Spring_AOP中AopTest出现java.lang.NoClassDefFoundError异常

摘要: AopTest异常: at test.AopTest.main(AopTest.java:17)Caused by: java.lang.NoClassDefFoundError: com/noma/aop/service/impl/loginServiceImpl (wrong name: com 阅读全文

posted @ 2022-02-22 23:04 NOMA~ 阅读(109) 评论(0) 推荐(0) 编辑

2022年2月20日

Mybatis学习04_SQL格式小工具

摘要: 在映射配置文件中编写添加/修改SQL语句时,需要添加#{}格式的属性,分享小工具 <insert id="insertUser"> insert into sysuser(uname, upwd) values (#{uname},#{upwd}) </insert> sql.properties 阅读全文

posted @ 2022-02-20 11:10 NOMA~ 阅读(32) 评论(0) 推荐(0) 编辑

MyBatis学习03_#{}和${}区别以及使用

摘要: #{}和${}区别以及使用 #{} :#{} 是以预编译的形式,直接将参数设置到sql语句中; 使用PreparedStatement的sql封装方法:设置了占位符为"?",可以有效地防止sql注入. <!--select * from sysuser where uname like '%${un 阅读全文

posted @ 2022-02-20 10:56 NOMA~ 阅读(709) 评论(0) 推荐(0) 编辑

Mybatis学习02_文件配置

摘要: 第一,导入jar包(方式很多,用一种) mybatis核心包(必导) 数据库驱动包(必导) 第二,进行配置 1.mybatis-config.xml 核心文件配置 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBL 阅读全文

posted @ 2022-02-20 10:50 NOMA~ 阅读(23) 评论(0) 推荐(0) 编辑

2022年2月19日

Mybatis学习01_ 介绍

摘要: 1.什么是mybatis? MyBatis的前身是iBatis,本是Apache的一个开源的项目. MyBatis 是一款优秀的1.持久层(2.半自动ORM)3.框架,它支持自定义 SQL、存储过程以及高级映射。MyBatis 免除了几乎所有的 JDBC 代码以及设置参数和获取结果集的工作。MyBa 阅读全文

posted @ 2022-02-19 23:43 NOMA~ 阅读(24) 评论(0) 推荐(0) 编辑

导航