模板: Split string into parts based on new line in java Solution: Reference is here. 1) get out of the first part of a string until meet "<" Solution: Reference is public String[] split(String regex). 1) s = "boo:and:foo"; St…
Stick button in right side in html Solution: //In the html <div class="float__button" > </div> // In the css file .float__button{ margin-right: 5%; float: right; } Set the size of textarea in CSS. Solution: //In the html <div clas…
Web Scraping爬虫 for Mac urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)> Solution: if 1) does not work, then try to use 2). Reference is here. 1) pip install --upgrade certifi 2) open /A…
java.lang.reflect.Method 一.Method类是什么 Method是一个类,位于java.lang.reflect包下. 在Java反射中 Method类描述的是 类的方法信息,通俗来讲 有一个类如下: package com.testReflect; public class MethodDemo { private int num = 2; private String str = "xixi"; public int addResult(int addNum…
feign多参数问题1.1GET方式错误写法 @RequestMapping(value="/test", method=RequestMethod.GET) Model test(final String name, final int age); 启动服务的时候,会报如下异常: Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com.ch…
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 加入Myeclipse自带的java EE 6 library即可解决:…
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field 'memberFeign'; nested exception is org.springframework.beans.factory.BeanCreationExcept…
出现此异常原因是引文使用feign客户端的时候,参数没有用注解修饰 1.1GET方式错误写法 @RequestMapping(value="/test", method=RequestMethod.GET) Model test(final String name, final int age); 启动服务的时候,会报如下异常: Caused by: java.lang.IllegalStateException: Method has too many Body parameters…
Principle Choose method names carefully. Don't go overboard in providing convenience methods. Avoid long parameter lists. Break the method up into multiple methods. Such as sublist element of List interface. Create helper classes to hold groups of pa…