2019/08/22 Statistics file: 10068 Code lines: 1229438 Comment lines: 195459 Blank lines: 157984
1. The pom file error, again and again the maven clean maven compiler tutorial, under the new tool to search and try again HTML directly measured with Chrome, prevent the project configuration problems affect the efficiency test, all kinds of error generated by default Don’t understand why intercepted, global search/app/shiro directly
2. Tomcat server. XML is set to port 8080, why use port 80 to resolve domain name of project, nginx reverse proxy port 80, directly use domain name to access project ‘
3. Swagger2 default not unpack/http://localhost:8080/swagger-ui.html? DocExpansion =list docExpansion: None (not expanded) list(expanded) full
Stringutils.isnotblank (type) Mybatis Interceptor z.qlInterceptor DynamicSource
Thymeleaf :value=”{id})}” th:href=”@{‘/a/b/’+${id}}”
List<Water> waters = water.sublist (0, water.size() >= 12? 11 : water.size()); Var types = type1.concat(type2).splice(5, 1); var types = type1.concat(type2).splice(5, 1); $('.table tr:first TD :nth-child(2)').text() $('table').find('tr').eq(i).find('td').eq(j).text(); $('table tr').size(); $('table td').size(); $. Ajax ({type: 'get', url: CTX + 'API /order/jsapi', data: {openId: $('.table tr:first td:nth-child(3)').text(), accountId: $('.table tr:first td:nth-child(2)').text(), payment: $('.money').val()} Date format YYYY /MM http://localhost/wx/[object%20Object] 400 The CTX value is faultyCopy the code
HTTP static 404 does not need to clean Chrome cache, MVN clean is good
400 Data types are incorrect. Id, name, TEL and Account are incorrect
Select Binary downloads zkserver.\ bin\ Windows \kafka-server-start. bat.\ config\server.properties to run Kafka on a Windows installation
6.ES
Basic format http://:/ < index > / / / API type > / < document id > UpdateResponse response = this. EsClient. PrepareUpdate (INDEX_NAME INDEX_TYPE, esId) .setDoc(objectMapper.writeValueAsBytes(indexTemplate), XContentType.JSON).get(); // deleteAndCreate() DeleteByQueryRequestBuilder builder = DeleteByQueryAction.INSTANCE .newRequestBuilder(esClient) .filter(QueryBuilders.termQuery(HouseIndexKey.HOUSE_ID, indexTemplate.getHouseId())) .source(INDEX_NAME); BulkByScrollResponse response = builder.get(); long deleted = response.getDeleted(); if (deleted ! = totalHit) {Copy the code
CD/opt/cf/logs cat sys - error. The log | grep -e "1 [3-4]" Ctrl + C to exit the command line CD/opt/app nohup Java - jar manager. Jar & ps aux | grep manager.jarCopy the code
Blog.csdn.net/u012190514/…
8.mysql
Tel like concat(#{tel}, '%') <div class="form-group"> <label class="control-label"> </label> <div class="control-inline"> <input type="text" name="tel" class="form-control"/> </div> </div> 0726.[HY000][1366] Incorrect string value: '\xE8\x8B\xA5\xE4\xBE\x9D... 'for column 'dept_name' at row 1 SQL engine=innodb replace engine=innodb DEFAULT CHARSET = utf8Copy the code
N. Sample code
Function data() {var search = {}; $.each(form.serializeArray(), function (i, field) { search[field.name] = field.value; }); var payTypes = $('.payType:checked'); var length = payTypes.length; for (var i = 0; i < length; i++) { search['payType[' + i + ']'] = payTypes[i].value; } return search; ParameterType ="String"> Delete from drug where drug_id in <foreach item="drugId" collection="array" open="(" separator="," > #{drugId} </foreach> </delete> // lambda expression List<SysDictData> payBarType = dictDataService.selectDictDataByType("pay_bar_type"); List<SysDictData> payOtherType = dictDataService.selectDictDataByType("pay_other_type") .stream().filter(field -> ! (" Collectors ").equals(field. GetDictLabel ())). Collect (Collectors. List<SysDictData> payType = Stream.of(payBarType, payOtherType).flatMap(Collection::stream).distinct().collect(Collectors.toList()); / / TODO var type1 junk code = [[${@ dict. GetType (' pay_bar_type ')}]]. var type2 = [[${@dict.getType('pay_other_type')}]]; var arr = type1.concat(type2); var types = []; for (var i = 0; i < arr.length; i++) { if(i ! == 5){ types.push(arr[i]); }} / / thymeleaf traversal < th th: id = "' type_ + ${dictStat. Index}" th: each = "dict: ${@dict.getType('pay_other_type')}" th:if="${dict.dictValue} neq '4'" th:attr="type=${dict.dictValue}" th:title="${dict.dictLabel}"> <div class="th-inner " th:text="${dict.dictLabel}"></div> <div class="fht-cell"></div> < span style = "max-width: 100%; clear: both; j < length; j++) { var typeObj = $('#type_' + j); var type = typeObj.attr('type'); var typeName = typeObj.attr('title'); obj[j] = {}; obj[j].name = typeName; if (data[i]['result'][type] === undefined) { html.push("<td>0</td>"); obj[j].value = 0; } else { html.push('<td>' + temp + '</td>'); obj[j].value = data[i]['result'][type]; } sum = math.parser().eval(sum + "+" + obj[j].value).d[0]; } // I for (var j = 0; j < length; j++) { var typeObj = $('#type_' + j); var type = typeObj.attr('type'); var typeName = typeObj.attr('title'); obj[j] = {}; obj[j].name = typeName; var temp = data[i]['result'][types[j].dictValue]; if (temp === undefined) { html.push('<td>0</td>'); } else { html.push('<td>' + temp + '</td>'); obj[j].value = temp; sum = math.parser().eval(sum + '+' + temp).d[0]; Var types = [[${@dict.getType('pay_bar_type' && 'pay_other_type')}]] var types = [[${@dict.getType('pay_bar_type' && 'pay_other_type')}] [[${@dict.getType('pay_bar_type')}]] && [[${@dict.getType('pay_other_type')}]] var type1 = [[${@dict.getType('pay_bar_type')}]]; var type2 = [[${@dict.getType('pay_other_type')}]]; var arr = type1.concat(type2); var types = []; for (var i = 0; i < arr.length; i++) { if (i ! == 5) { types.push(arr[i]); }}Copy the code
3. Devtools Property defaults active
4.bug
1. The Failure to find com. Fasterxml. Jackson: Jackson - bom: pom: 1.9.13 in https://repo.spring.io/milestone was cached in the local repository, Resolution will not be rechs until the update interval of spring- renamed has Elapsed or updates are forced https://blog.csdn.net/weixin_43232196/article/details/82760093 approach: Mapper. XML if = > /> selectDrugList if = > /> java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group by account.id) tmp_count' at line 18; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group by account.id) tmp_count' at line 18] 4. Today we solved the mystery bug, jar project Thymeleaf reported 500. Get rid of the skew bar. https://heiyogl.github.io/2018/04/01/SpringBoot-%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E6%A8%A1%E6%9D%BF%E5%BC%95%E5%85%A5 %E9%94%99%E8%AF%AF/Copy the code
TODO source code repeated business, table field all good annotation, generate database documents of various data types of non-empty judgment mouse back to the last position IDEA cursor moved to a position guava
Tools to crack, Charles www.zzzmode.com/mytools/cha…
Override hashCode Override ry->new project
Results: sys-user.log-> Logback. XML Ali cloud SMS can be tested locally
A family of three in three countries