Hegp

Results 11 comments of Hegp

## 比较重要的一个问题 * 查询条件是前端页面动态拼装的,如果别人有意识地攻击接口,随意组装成十表联查的SQL语句,或者是拼装几个大表的笛卡尔积的SQL语句,数据库会吃不消 #### 好的地方 * 这个项目可以让后端从curd的业务解放出来 * 缩减前后端对接的时间,提高效率 #### 待完善的地方 * 看这个项目的多数都是Java开发的,其实介绍文档可以完全忽略eclipse导入Java项目过程。文档要写得精简,重点突出 * apijson的java项目,JavaScript项目,Android项目,单独划分出去,作为单独的项目 * 项目目录结构和项目命名大小写规范一点,无关重要的文件可以删掉,Oracle,MySQL,postgresql的初始化脚本各提供一份就可以了,不需要单独建文件夹去存放 * 项目应该全部改成maven形式,无须在libs引入postgres的jar包或者引入apijson-libarary的jar包,应该改成maven引入 ``` org.postgresql postgresql 42.2.5 ``` ### 不破不立

* 有个docker-compose脚本入门的话, 可以少走很多的弯路

* 终于解决了,我给 JAVA_OPTS 配置了 -Dhost.ip=192.168.1.110 就可以了,不容易

* 脑阔疼,又冒出了一个问题,访问URL时,http的code=500,为啥会有各种问题 * 我平常开发的项目,如果出现这种问题,属于生产线上严重的bug,是不可以被接受的,整个项目团队都受影响 * http://127.0.0.1:8081/cat/r/t?domain=cat&ip=All&date=2021041723&reportType=day&op=view ![image](https://user-images.githubusercontent.com/26202719/115118116-5dc4e500-9fd4-11eb-9960-67d78d464819.png) ![image](https://user-images.githubusercontent.com/26202719/115118188-a8def800-9fd4-11eb-8889-658f57664fc2.png) ``` Caused by: java.lang.RuntimeException: Error occured during invoking method: public void com.dianping.cat.report.page.transaction.Handler.handleOutbound(com.dianping.cat.report.page.transaction.Context) throws javax.servlet.ServletException,java.io.IOException with parameters([com.dianping.cat.report.page.transaction.Context@79804ed1]) at org.unidal.lookup.util.ReflectUtils.invokeMethod(ReflectUtils.java:52) at org.unidal.web.mvc.lifecycle.DefaultOutboundActionHandler.handle(DefaultOutboundActionHandler.java:29) ... 43...

![image](https://user-images.githubusercontent.com/26202719/115119232-e3975f00-9fd9-11eb-8592-859f5b10468c.png)

> 这是个bug,因为这个domain当前小时一直没有数据导致 发自我的iPhone > […](#) > 在 2021年4月18日,00:07,攻城狮 ***@***.***> 写道:  — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it...

* My project is generated by Springboot, the config params are followed these ``` spring.jpa: hibernate.ddl-auto: update properties.hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect properties.hibernate.temp.use_jdbc_metadata_defaults: false properties.redis: expiryInSeconds: default: 120 hibernate: common: 0 account: 1200...

@xuxueli 是每个执行器开启socket,然后xxl-job-admin来连每个执行器的socket吗?还是xxl-job-admin开启socket,然后是执行器来连?

``` Caused by: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 30000ms in 'Mono.create ⇢ at io.modelcontextprotocol.spec.DefaultMcpSession.sendRequest(DefaultMcpSession.java:228)' (and no fallback has been configured) at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:296) Suppressed: The stacktrace...

我用android9时,一直waiting for debug就不动. 换成android7, 却可以dump出dex文件. 换成 Android-7.0 试一下