2021年3月4日

摘要: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis. 阅读全文
posted @ 2021-03-04 10:49 老痰涮菜 阅读(1997) 评论(0) 推荐(0) 编辑
 

2021年3月3日

摘要: package archives.commom.utils; import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; import org.apache.commons.lang3.ArrayUtils; import or 阅读全文
posted @ 2021-03-03 10:46 老痰涮菜 阅读(155) 评论(0) 推荐(0) 编辑
 
摘要: javax.crypto 是java 内置的,打包时pom文件增加 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId 阅读全文
posted @ 2021-03-03 10:36 老痰涮菜 阅读(529) 评论(0) 推荐(0) 编辑
 

2020年10月20日

摘要: js float类型做加法 var accAdd = function (arg1, arg2) { let r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = ar 阅读全文
posted @ 2020-10-20 10:24 老痰涮菜 阅读(924) 评论(0) 推荐(0) 编辑
 

2020年9月28日

摘要: js代码:比如 . 转义位\.function escapeRegExp(text) { text = text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); return text;} 阅读全文
posted @ 2020-09-28 18:31 老痰涮菜 阅读(1212) 评论(0) 推荐(0) 编辑
 

2020年7月21日

摘要: 原因很简单,idea的缓存导致的,索引建立错误了,重新清理一下idea缓存,并重启idea就可以了。 如果只是单独的插件报红,可能是你没有指定maven插件版本,就像这样 不过有的是默认版本,可以手动指定 ,在maven-compiler-plugin下增加<version>3.1<version> 阅读全文
posted @ 2020-07-21 09:23 老痰涮菜 阅读(4092) 评论(0) 推荐(1) 编辑
 

2020年7月10日

摘要: 实体类属性和数据库字段对应,类属性类型不能为int,否则会获取不到数据库值,也无法通过对象赋值set进数据库,即便手动改变对象属性。解决方法,把int改为integer类型,注意get/set方法也要改变 阅读全文
posted @ 2020-07-10 11:49 老痰涮菜 阅读(416) 评论(0) 推荐(0) 编辑
 

2019年10月14日

摘要: @Controller 组合注解(组合了@Component注解),应用在MVC层(控制层),DispatcherServlet会自动扫描注解了此注解的类,然后将web请求映射到注解了@RequestMapping的方法上。@Service 组合注解(组合了@Component注解),应用在serv 阅读全文
posted @ 2019-10-14 08:53 老痰涮菜 阅读(428) 评论(0) 推荐(0) 编辑
 

2019年8月3日

摘要: 继承:类与类之间产生一种关系 阅读全文
posted @ 2019-08-03 08:39 老痰涮菜 阅读(172) 评论(0) 推荐(0) 编辑
 

2019年7月10日

摘要: 1、直接使用算术运算法交换 先把两个数的和赋值给其中一个,然后做减法。例如num1=num1+num2; 此时num2(交换之后)就等于num1减去num2;废话不多说,直接上代码 public class Demo{ public static void main(String[] args){ 阅读全文
posted @ 2019-07-10 16:54 老痰涮菜 阅读(534) 评论(0) 推荐(0) 编辑