金田项目的总结

 

一个搜索框对手机、姓名、内容进行搜索

<select id="list" parameterType="java.lang.String" resultMap="BaseResultMap">select<include refid="Base_Column_List"/>from user_backstagewhere 1=1 and is_deleted='N'<if test="content!=null and content!=''">and (fullname=#{content} or username=#{content} or phone=#{content})</if>order by create_time desc
</select>

 

<select id="selectByPhoneOrUserName" parameterType="java.lang.String" resultMap="BaseResultMap">select<include refid="Base_Column_List"/>from user_backstagewhere is_deleted='N'and (username=#{username} or phone=#{phone})
</select>

 

 

@NotEmpty、@NotNull、@NotBlank的源码注释、区别、举例
原创山月风成 最后发布于2018-04-04 20:17:30 阅读数 4908  收藏
展开
网上搜索总结如下,
@NotEmpty、@NotNull、@NotBlank的区别
1 @NotEmpty :不能为null,且Size>0
2 @NotNull:不能为null,但可以为empty,没有Size的约束
3 @NotBlank:只用于String,不能为null且trim()之后size>0

不够具体,不权威,直接上源码注释!

@NotEmpty
/** 
* Asserts that the annotated string, collection, map or array is not {@code null} or empty. 

* @author Emmanuel Bernard 
* @author Hardy Ferentschik 
*/
 
断言,带注解的String,collection,map或数组不能为null,也不能为空。
也就是说,有@NotEmpty注解的String、Collection、Map、数组是不能为null或长度为0

踩坑
@NotEmpty(message = "id不能为null或空")
pirvate Long id;   
错!这是基础类型的包装类、除了以上4种类型都不能使用@NotEmpty

@NotNull(message = "id不能为null或空")
private Long id; 
正确
 
@NotBlank
/** 
* Validate that the annotated string is not {@code null} or empty. 
* The difference to {@code NotEmpty} is that trailing whitespaces are getting ignored. 

* @author Hardy Ferentschik 
*/
 
验证注释的String不是null或空的,与@NotEmpty的区别在于,尾部空格被忽略,也就是说,纯空格的String也是不符合规则的,此注解只能用于验证String类型

@NotNull
/** 
* The annotated element must not be {@code null}. 
* Accepts any type. 

* @author Emmanuel Bernard 
*/
 
带注释的元素不能为null。接受任何类型。完美!

应用场景
数据库表student_message
实体类时Student
属性有

//id不能为null
@NotNull
private int id;

//姓名不能为null,也不能为“  ”
@NotEmpty
private String name;

//爱好不能为null,但可以为“  ”
@NotNull
private String favorite;

//家庭住址不能为null,只能填String,trim()去掉尾部空格后,
//字符串个数大于0.类别:(必填项)
@NotBlank
private String address;

 

 

手机号/用户名/昵称  模糊查询

 

 

 

 

 

金田公寓查看线上的额错误日志

Administrator@PC-201908221240 MINGW64 ~/Desktop
$ ssh root@10.23.12.48
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-88-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon May 11 14:41:17 CST 2020

  System load:                    0.43
  Usage of /:                     43.0% of 48.96GB
  Memory usage:                   62%
  Swap usage:                     0%
  Processes:                      262
  Users logged in:                1
  IP address for ens160:          10.23.12.48
  IP address for br-cb039c25af75: 172.18.0.1
  IP address for docker_gwbridge: 172.19.0.1
  IP address for docker0:         172.17.0.1
  IP address for br-3f998dfe0380: 172.21.0.1
  IP address for br-664b1781737b: 172.20.0.1

 * Ubuntu 20.04 LTS is out, raising the bar on performance, security,
   and optimisation for Intel, AMD, Nvidia, ARM64 and Z15 as well as
   AWS, Azure and Google Cloud.

     https://ubuntu.com/blog/ubuntu-20-04-lts-arrives


 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

119 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: Mon May 11 14:34:37 2020 from 10.23.12.34 

root@yyyf:~# docker logs -f apartmentFinance


 :: Dubbo Spring Boot (v0.2.0) : https://github.com/apache/incubator-dubbo-spring-boot-project
 :: Dubbo (v2.6.2) : https://github.com/apache/incubator-dubbo
 :: Google group : dev@dubbo.incubator.apache.org

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.4.RELEASE)

2020-05-11 14:36:55.432 INFO  com.unicom.apartment.FinanceApplication:50 - Starting FinanceApplication v0.0.1-SNAPSHOT on 03cc382518ba with PID 1 (/app/finance.jar started by root in /app)
2020-05-11 14:36:55.435 DEBUG com.unicom.apartment.FinanceApplication:53 - Running with Spring Boot v2.1.4.RELEASE, Spring v5.1.6.RELEASE
2020-05-11 14:36:55.436 INFO  com.unicom.apartment.FinanceApplication:679 - The following profiles are active: dev
2020-05-11 14:36:57.087 WARN  com.alibaba.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor:155 -  [DUBBO] No Spring Bean annotating Dubbo's @Service was found under package[com.unicom.apartment.service.impl], dubbo version: 2.6.2, current host: 172.21.0.9
2020-05-11 14:37:00.283 WARN  io.seata.common.loader.EnhancedServiceLoader:318 - load [io.seata.codec.hessian.HessianCodec] class fail. com/caucho/hessian/io/AbstractHessianOutput
2020-05-11 14:37:00.389 WARN  org.mybatis.spring.SqlSessionFactoryBean:44 - Property 'mapperLocations' was specified but matching resources are not found.
Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
2020-05-11 14:37:06.152 INFO  com.unicom.apartment.FinanceApplication:59 - Started FinanceApplication in 11.363 seconds (JVM running for 11.94)
Creating a new SqlSession
2020-05-11 14:38:27.890 INFO  com.unicom.apartment.controller.BillController:79 - 普通财务列表  FinancialListDto={"apartmentId":"442111143688880128","billType":"","createTime":"","resourceName":"","state":[]} pageNum=1 pageSize=10
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5fc2c12f] was not registered for synchronization because synchronization is not active
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@23071f9e] will not be managed by Spring
==>  Preparing: select 'true' as QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted from bill_type WHERE ( is_deleted = ? )
==> Parameters: N(String)
<==    Columns: QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 450995678040264704, 房租, 1, 每月价格, https://oss.hurcjt.com/apartment/2020/03/29/6d8734d7ce76401bb6b3499e8466638e.jpg, null, 100, 2020-03-29 12:15:48, 100, 2020-03-29 12:15:48, N
<==        Row: true, 461176823137456128, 履约金, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/8193f8f32e124e499a4e8625a5dc3263.jpg, null, 100, 2020-04-26 14:32:02, 100, 2020-05-09 14:55:12, N
<==        Row: true, 461176823137456129, 家电维修2, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/96c8262baa1e4250b55ed02fb61251ed.jpeg, 家电维修2, 1, 2020-05-09 11:44:38, 100, 2020-05-09 14:55:35, N
<==        Row: true, 465881174116438016, 停车费, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/4e6a4cab23e346f99ad3a2bb1a5165ed.jpeg, null, 100, 2020-05-09 14:05:27, 100, 2020-05-09 14:56:36, N
<==        Row: true, 466605939085053952, 物业费, 2, 每月单位价格, https://oss.hurcjt.com/apartment/2020/05/11/05224193c9784f9cb59ee0e6c4e02058.jpg, null, 100, 2020-05-11 14:05:24, 100, 2020-05-11 14:05:24, N
<==      Total: 5
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5fc2c12f]
2020-05-11 14:38:28.241 INFO  com.unicom.apartment.service.impl.BillServiceImpl:722 - resourceIdList=[456427715992072192, 456427716025626624, 456427716034015232, 456427716042403840, 456427716050792448, 456427716059181056, 456427716067569664, 456427716075958272, 456427716084346880, 456427716096929792, 456427716109512704, 456427716117901312, 456427716122095616, 456427716130484224, 456427716138872832, 456427716147261440, 456427716151455744, 456427716159844352, 456777194725289984, 456777194729484288, 456777480739074048, 456777480747462656, 456777480760045568, 456777480764239872, 456777480768434176, 456777480772628480, 456777480781017088, 456777480785211392, 456777480793600000, 456777480801988608, 456777480822960128, 456777480827154432, 456777480831348736, 456777480835543040, 456777480843931648, 456777480860708864, 456787573358571520]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6e2f9d1b] was not registered for synchronization because synchronization is not active
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@167d17f0] will not be managed by Spring
==>  Preparing: SELECT count(0) FROM bill WHERE (resource_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND is_deleted = ?)
==> Parameters: 456427715992072192(Long), 456427716025626624(Long), 456427716034015232(Long), 456427716042403840(Long), 456427716050792448(Long), 456427716059181056(Long), 456427716067569664(Long), 456427716075958272(Long), 456427716084346880(Long), 456427716096929792(Long), 456427716109512704(Long), 456427716117901312(Long), 456427716122095616(Long), 456427716130484224(Long), 456427716138872832(Long), 456427716147261440(Long), 456427716151455744(Long), 456427716159844352(Long), 456777194725289984(Long), 456777194729484288(Long), 456777480739074048(Long), 456777480747462656(Long), 456777480760045568(Long), 456777480764239872(Long), 456777480768434176(Long), 456777480772628480(Long), 456777480781017088(Long), 456777480785211392(Long), 456777480793600000(Long), 456777480801988608(Long), 456777480822960128(Long), 456777480827154432(Long), 456777480831348736(Long), 456777480835543040(Long), 456777480843931648(Long), 456777480860708864(Long), 456787573358571520(Long), N(String)
<==    Columns: count(0)
<==        Row: 4
<==      Total: 1
==>  Preparing: select 'true' as QUERYID, id, bill_type, unit_price, area, settle_cycle, bill_startdate, bill_enddate, bill_finaldate, total_month, break_money, remove_money, actual_money, remark, notice_mode, original_money, refund_state, state, user_id, resource_id, create_user, create_time, update_user, update_time, is_deleted from bill WHERE ( resource_id in ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ) and is_deleted = ? ) order by create_time desc LIMIT ?
==> Parameters: 456427715992072192(Long), 456427716025626624(Long), 456427716034015232(Long), 456427716042403840(Long), 456427716050792448(Long), 456427716059181056(Long), 456427716067569664(Long), 456427716075958272(Long), 456427716084346880(Long), 456427716096929792(Long), 456427716109512704(Long), 456427716117901312(Long), 456427716122095616(Long), 456427716130484224(Long), 456427716138872832(Long), 456427716147261440(Long), 456427716151455744(Long), 456427716159844352(Long), 456777194725289984(Long), 456777194729484288(Long), 456777480739074048(Long), 456777480747462656(Long), 456777480760045568(Long), 456777480764239872(Long), 456777480768434176(Long), 456777480772628480(Long), 456777480781017088(Long), 456777480785211392(Long), 456777480793600000(Long), 456777480801988608(Long), 456777480822960128(Long), 456777480827154432(Long), 456777480831348736(Long), 456777480835543040(Long), 456777480843931648(Long), 456777480860708864(Long), 456787573358571520(Long), N(String), 10(Integer)
<==    Columns: QUERYID, id, bill_type, unit_price, area, settle_cycle, bill_startdate, bill_enddate, bill_finaldate, total_month, break_money, remove_money, actual_money, remark, notice_mode, original_money, refund_state, state, user_id, resource_id, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 466607297414598656, 450995678040264704, 1000.00, null, 3, 2020-05-01 00:00:00, 2020-06-24 00:00:00, 2020-05-30 00:00:00, 2, 100.00, 50.00, 2050, null, 1, null, 4, 3, 451764014038773760, 456427715992072192, 100, 2020-05-11 14:10:48, 100, 2020-05-11 14:10:48, N
<==        Row: true, 466607154351083520, 450995678040264704, 1000.00, null, 3, 2020-05-01 00:00:00, 2020-06-24 00:00:00, 2020-05-30 00:00:00, 2, 100.00, 50.00, 2050, null, 1, null, 4, 3, 451764014038773760, 456427715992072192, 100, 2020-05-11 14:10:14, 100, 2020-05-11 14:10:14, N
<==        Row: true, 466606402912161792, 466605939085053952, 10.00, 30.00, 3, 2020-05-01 00:00:00, 2020-06-17 00:00:00, 2020-05-29 00:00:00, 2, 100.00, 100.00, 600, null, 1, null, 4, 3, 450662170105118720, 456427716025626624, 100, 2020-05-11 14:07:15, 100, 2020-05-11 14:07:15, N
<==        Row: true, 461173351180685312, 450995678040264704, 2100.00, null, 4, 2020-04-20 00:00:00, 2020-10-19 00:00:00, 2020-07-19 00:00:00, null, null, null, 14700, null, 1, null, 4, 3, 456432965629042688, 456427715992072192, 100, 2020-04-26 14:18:15, 100, 2020-04-26 14:18:15, N
<==      Total: 4
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6e2f9d1b]
2020-05-11 14:38:28.336 INFO  com.unicom.apartment.service.impl.BillTypeServiceImpl:102 - 获取id为:450995678040264704BillType
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4a797b81] was not registered for synchronization because synchronization is not active
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@38ce3d20] will not be managed by Spring
==>  Preparing: select 'true' as QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted from bill_type WHERE ( id = ? and is_deleted = ? )
==> Parameters: 450995678040264704(Long), N(String)
<==    Columns: QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 450995678040264704, 房租, 1, 每月价格, https://oss.hurcjt.com/apartment/2020/03/29/6d8734d7ce76401bb6b3499e8466638e.jpg, null, 100, 2020-03-29 12:15:48, 100, 2020-03-29 12:15:48, N
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4a797b81]
2020-05-11 14:38:28.351 ERROR com.unicom.apartment.advice.GlobalCfgControllerAdvice:48 - System.Err

java.lang.NullPointerException: null
        at com.unicom.apartment.service.impl.BillServiceImpl.findByPage(BillServiceImpl.java:393)
        at com.unicom.apartment.controller.BillController.findByPage(BillController.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:151)
        at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

2020-05-11 14:38:28.352 ERROR com.unicom.apartment.advice.GlobalCfgControllerAdvice:80 - null
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1a1f7a9c] was not registered for synchronization because synchronization is not active
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@10e711ec] will not be managed by Spring
==>  Preparing: select 'true' as QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted from bill_type WHERE ( is_deleted = ? )
2020-05-11 14:38:43.435 INFO  com.unicom.apartment.controller.BillController:79 - 普通财务列表  FinancialListDto={"apartmentId":"442111143688880128","billType":"","createTime":"","resourceName":"","state":[]} pageNum=1 pageSize=10
==> Parameters: N(String)
2020-05-11 14:38:43.440 INFO  com.unicom.apartment.service.impl.BillServiceImpl:722 - resourceIdList=[456427715992072192, 456427716025626624, 456427716034015232, 456427716042403840, 456427716050792448, 456427716059181056, 456427716067569664, 456427716075958272, 456427716084346880, 456427716096929792, 456427716109512704, 456427716117901312, 456427716122095616, 456427716130484224, 456427716138872832, 456427716147261440, 456427716151455744, 456427716159844352, 456777194725289984, 456777194729484288, 456777480739074048, 456777480747462656, 456777480760045568, 456777480764239872, 456777480768434176, 456777480772628480, 456777480781017088, 456777480785211392, 456777480793600000, 456777480801988608, 456777480822960128, 456777480827154432, 456777480831348736, 456777480835543040, 456777480843931648, 456777480860708864, 456787573358571520]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6544a3a6] was not registered for synchronization because synchronization is not active
<==    Columns: QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 450995678040264704, 房租, 1, 每月价格, https://oss.hurcjt.com/apartment/2020/03/29/6d8734d7ce76401bb6b3499e8466638e.jpg, null, 100, 2020-03-29 12:15:48, 100, 2020-03-29 12:15:48, N
<==        Row: true, 461176823137456128, 履约金, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/8193f8f32e124e499a4e8625a5dc3263.jpg, null, 100, 2020-04-26 14:32:02, 100, 2020-05-09 14:55:12, N
<==        Row: true, 461176823137456129, 家电维修2, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/96c8262baa1e4250b55ed02fb61251ed.jpeg, 家电维修2, 1, 2020-05-09 11:44:38, 100, 2020-05-09 14:55:35, N
<==        Row: true, 465881174116438016, 停车费, 3, 固定金额, https://oss.hurcjt.com/apartment/2020/05/09/4e6a4cab23e346f99ad3a2bb1a5165ed.jpeg, null, 100, 2020-05-09 14:05:27, 100, 2020-05-09 14:56:36, N
<==        Row: true, 466605939085053952, 物业费, 2, 每月单位价格, https://oss.hurcjt.com/apartment/2020/05/11/05224193c9784f9cb59ee0e6c4e02058.jpg, null, 100, 2020-05-11 14:05:24, 100, 2020-05-11 14:05:24, N
<==      Total: 5
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1a1f7a9c]
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@29b5a7cc] will not be managed by Spring
==>  Preparing: SELECT count(0) FROM bill WHERE (resource_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND is_deleted = ?)
==> Parameters: 456427715992072192(Long), 456427716025626624(Long), 456427716034015232(Long), 456427716042403840(Long), 456427716050792448(Long), 456427716059181056(Long), 456427716067569664(Long), 456427716075958272(Long), 456427716084346880(Long), 456427716096929792(Long), 456427716109512704(Long), 456427716117901312(Long), 456427716122095616(Long), 456427716130484224(Long), 456427716138872832(Long), 456427716147261440(Long), 456427716151455744(Long), 456427716159844352(Long), 456777194725289984(Long), 456777194729484288(Long), 456777480739074048(Long), 456777480747462656(Long), 456777480760045568(Long), 456777480764239872(Long), 456777480768434176(Long), 456777480772628480(Long), 456777480781017088(Long), 456777480785211392(Long), 456777480793600000(Long), 456777480801988608(Long), 456777480822960128(Long), 456777480827154432(Long), 456777480831348736(Long), 456777480835543040(Long), 456777480843931648(Long), 456777480860708864(Long), 456787573358571520(Long), N(String)
<==    Columns: count(0)
<==        Row: 4
<==      Total: 1
==>  Preparing: select 'true' as QUERYID, id, bill_type, unit_price, area, settle_cycle, bill_startdate, bill_enddate, bill_finaldate, total_month, break_money, remove_money, actual_money, remark, notice_mode, original_money, refund_state, state, user_id, resource_id, create_user, create_time, update_user, update_time, is_deleted from bill WHERE ( resource_id in ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ) and is_deleted = ? ) order by create_time desc LIMIT ?
==> Parameters: 456427715992072192(Long), 456427716025626624(Long), 456427716034015232(Long), 456427716042403840(Long), 456427716050792448(Long), 456427716059181056(Long), 456427716067569664(Long), 456427716075958272(Long), 456427716084346880(Long), 456427716096929792(Long), 456427716109512704(Long), 456427716117901312(Long), 456427716122095616(Long), 456427716130484224(Long), 456427716138872832(Long), 456427716147261440(Long), 456427716151455744(Long), 456427716159844352(Long), 456777194725289984(Long), 456777194729484288(Long), 456777480739074048(Long), 456777480747462656(Long), 456777480760045568(Long), 456777480764239872(Long), 456777480768434176(Long), 456777480772628480(Long), 456777480781017088(Long), 456777480785211392(Long), 456777480793600000(Long), 456777480801988608(Long), 456777480822960128(Long), 456777480827154432(Long), 456777480831348736(Long), 456777480835543040(Long), 456777480843931648(Long), 456777480860708864(Long), 456787573358571520(Long), N(String), 10(Integer)
<==    Columns: QUERYID, id, bill_type, unit_price, area, settle_cycle, bill_startdate, bill_enddate, bill_finaldate, total_month, break_money, remove_money, actual_money, remark, notice_mode, original_money, refund_state, state, user_id, resource_id, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 466607297414598656, 450995678040264704, 1000.00, null, 3, 2020-05-01 00:00:00, 2020-06-24 00:00:00, 2020-05-30 00:00:00, 2, 100.00, 50.00, 2050, null, 1, null, 4, 3, 451764014038773760, 456427715992072192, 100, 2020-05-11 14:10:48, 100, 2020-05-11 14:10:48, N
<==        Row: true, 466607154351083520, 450995678040264704, 1000.00, null, 3, 2020-05-01 00:00:00, 2020-06-24 00:00:00, 2020-05-30 00:00:00, 2, 100.00, 50.00, 2050, null, 1, null, 4, 3, 451764014038773760, 456427715992072192, 100, 2020-05-11 14:10:14, 100, 2020-05-11 14:10:14, N
<==        Row: true, 466606402912161792, 466605939085053952, 10.00, 30.00, 3, 2020-05-01 00:00:00, 2020-06-17 00:00:00, 2020-05-29 00:00:00, 2, 100.00, 100.00, 600, null, 1, null, 4, 3, 450662170105118720, 456427716025626624, 100, 2020-05-11 14:07:15, 100, 2020-05-11 14:07:15, N
<==        Row: true, 461173351180685312, 450995678040264704, 2100.00, null, 4, 2020-04-20 00:00:00, 2020-10-19 00:00:00, 2020-07-19 00:00:00, null, null, null, 14700, null, 1, null, 4, 3, 456432965629042688, 456427715992072192, 100, 2020-04-26 14:18:15, 100, 2020-04-26 14:18:15, N
<==      Total: 4
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6544a3a6]
2020-05-11 14:38:43.460 INFO  com.unicom.apartment.service.impl.BillTypeServiceImpl:102 - 获取id为:450995678040264704BillType
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@44668a23] was not registered for synchronization because synchronization is not active
JDBC Connection [io.seata.rm.datasource.ConnectionProxy@4a311570] will not be managed by Spring
==>  Preparing: select 'true' as QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted from bill_type WHERE ( id = ? and is_deleted = ? )
==> Parameters: 450995678040264704(Long), N(String)
<==    Columns: QUERYID, id, bill_type_name, billing_model_int, billing_model, image_name, remark, create_user, create_time, update_user, update_time, is_deleted
<==        Row: true, 450995678040264704, 房租, 1, 每月价格, https://oss.hurcjt.com/apartment/2020/03/29/6d8734d7ce76401bb6b3499e8466638e.jpg, null, 100, 2020-03-29 12:15:48, 100, 2020-03-29 12:15:48, N
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@44668a23]
2020-05-11 14:38:43.469 ERROR com.unicom.apartment.advice.GlobalCfgControllerAdvice:48 - System.Err

java.lang.NullPointerException: null
        at com.unicom.apartment.service.impl.BillServiceImpl.findByPage(BillServiceImpl.java:393)
        at com.unicom.apartment.controller.BillController.findByPage(BillController.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:151)
        at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

2020-05-11 14:38:43.469 ERROR com.unicom.apartment.advice.GlobalCfgControllerAdvice:80 - null
^C
root@yyyf:~# docker logs -f apartmentFinance
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/327758.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

18000 6c java_面向ISO18000-6C协议的无源超高频射频识别标签芯片设计

摘要&#xff1a;This paper presents a new fully integrated wide-range UHF passive RFID tag chip design that is compatible with the ISO18000-6C protocol. In order to reduce the die area, an ultra-low power CMOS voltage regulator without resistors and an are…

Vue异步组件

转载自 Vue异步组件 在大型应用中&#xff0c;我们可能需要将应用分割成小一些的代码块&#xff0c;并且只在需要的时候才从服务器加载一个模块。为了简化&#xff0c;Vue 允许你以一个工厂函数的方式定义你的组件&#xff0c;这个工厂函数会异步解析你的组件定义。Vue 只有在…

文章中文字乱码问题解决办法集合

乱码问题 测试步骤&#xff1a; 1、我们可以在首页编写一个提交的表单 <form action"/e/t" method"post"><input type"text" name"name"><input type"submit"> </form>2、后台编写对应的处理类 …

.NET开源两年之后社区贡献如何

微软在 2014 年开源了 .NET 核心框架&#xff0c;欢迎社区贡献代码。2015 年&#xff0c;一位 .NET 开发者分析了开源一年之后的社区贡献。2016 年年底又到了&#xff0c;这位开发者再次发表文章&#xff0c;分析了 .NET 开源两年之后的情况。 这一次他分析了 15 个 .NET 开源项…

java把控件跑挂了_Java代码动态修改 ConstraintLayout 内控件布局的辅助类

##上图ConstraintUtil.javaimport android.support.annotation.IdRes;import android.support.constraint.ConstraintLayout;import android.support.constraint.ConstraintSet;import android.transition.TransitionManager;/*** Created by xiaolei on 2017/9/8.*/public cla…

json vs obj

var obj {a: Hello, b: World}; //这是一个对象&#xff0c;注意键名也是可以使用引号包裹的 var json {"a": "Hello", "b": "World"}; //这是一个 JSON 字符串&#xff0c;本质是一个字符串在 JavaScript 语言中&#xff0c;一切都…

Vue动态组件

转载自 Vue动态组件 在动态组件上使用 keep-alive 我们之前曾经在一个多标签的界面中使用 is 特性来切换不同的组件&#xff1a; <component v-bind:is"currentTabComponent"></component> 当在这些组件之间切换的时候&#xff0c;你有时会想保持这些组…

ASP.NET Core Kestrel部署HTTPS

ASP.NET Core配置 Kestrel部署HTTPS。现在大部分网站已经部署HTTPS&#xff0c;大家对于安全越来越重视。 今天简单介绍一下ASP.NET Core 部署HTTPS&#xff0c;直接通过配置Kestrel。大家也可以通过前置Nginx来部署HTTPS。 下面直接进入正题。 新建项目并添加引用 新建一个ASP…

Mybatis+mysql动态分页查询数据案例——分页工具类(Page.java)

package cn.bdqn.mhouse.util;import java.util.ArrayList; import java.util.List;import cn.bdqn.mhouse.entity.House;/*** * * 项目名称&#xff1a;mhouse * 类名称&#xff1a;Page * 类描述&#xff1a; 分页的工具类 * 创建人&#xff1a;Mu Xiongxiong …

JSON 和 JavaScript 对象互转

JSON 和 JavaScript 对象互转 要实现从JSON字符串转换为JavaScript 对象&#xff0c;使用 JSON.parse() 方法&#xff1a; var obj JSON.parse({"a": "Hello", "b": "World"}); //结果是 {a: Hello, b: World}要实现从JavaScript 对…

java 时钟 算法分析_java实现时钟方法汇总

import java.awt.Dimension;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;//第一种比较推荐&…

Java IO: 网络

转载自 Java IO: 网络译文链接 作者: Jakob Jenkov 译者: 李璟(jlee381344197gmail.com) 校对&#xff1a;方腾飞 Java中网络的内容或多或少的超出了Java IO的范畴。关于Java网络更多的是在我的Java网络教程中探讨。但是既然网络是一个常见的数据来源以及数据流目的地&#xf…

配置phython环境

参考资料 https://www.runoob.com/python/python-install.html https://www.cnblogs.com/huangbiquan/p/7784533.html Python下载 Python最新源码&#xff0c;二进制文档&#xff0c;新闻资讯等可以在Python的官网查看到&#xff1a; Python官网&#xff1a;https://www.py…

ASP.NET Core 之 Identity 入门(三)

前言 在上一篇文章中&#xff0c;我们学习了 CookieAuthentication 中间件&#xff0c;本篇的话主要看一下 Identity 本身。 最早2005年 ASP.NET 2.0 的时候开始&#xff0c; Web 应用程序在处理身份验证和授权有了很多的变化&#xff0c;多了比如手机端&#xff0c;平板等&…

玩物得志Java笔试题_代码规范利器-CheckStyle

本期内容分为五个部分&#xff0c;阅读时长预估7分钟&#xff1a;使用背景CheckStyle使用意义CheckStyle安装与使用CheckStyle检查配置示例落地使用情况及效果使用背景玩物得志目前还处在一个狂奔业务的时期&#xff0c;开发一般都全力支撑业务的快速奔跑&#xff0c;没有太多的…

Json交互处理

Json交互处理 JSON简介 JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式&#xff0c;目前使用特别广泛。采用完全独立于编程语言的文本格式来存储和表示数据。简洁和清晰的层次结构使得 JSON 成为理想的数据交换语言。易于人阅读和编写&#xff0…

基于Spring boot,使用idea方便地切换启动环境

https://blog.csdn.net/mate_ge/article/details/78624579 基于Spring boot&#xff0c;使用idea方便地切换启动环境 原创martsforever 最后发布于2017-11-24 14:49:30 阅读数 17615 收藏 展开 在真实项目开发的时候&#xff0c;一定会有多个环境&#xff0c;这里以开发环境和…

Mybatis+mysql动态分页查询数据案例——条件类(HouseCondition)

package cn.bdqn.mhouse.entity; /*** * * 项目名称&#xff1a;house * 类名称&#xff1a;HouseCondition * 类描述&#xff1a; 动态查询房屋信息的条件类 * 创建人&#xff1a;Mu Xiongxiong * 创建时间&#xff1a;2017-3-10 下午9:39:21 * 修改人&…

Java IO: 字节和字符数组

转载自 Java IO: 字节和字符数组译文链接 作者&#xff1a; Jakob Jenkov 译者&#xff1a;homesick 内容列表 从InputStream或者Reader中读入数组从OutputStream或者Writer中写数组 在java中常用字节和字符数组在应用中临时存储数据。而这些数组又是通常的数据读取来源或…