小编ank*_*kit的帖子

如何使用属性文件在log4j2中创建多个日志文件?

我正在使用 .property 文件在特定路径中创建日志文件,但我正在使用它创建单个文件。以下是我的属性文件代码:

    status = error
dest = err
name = PropertiesConfig

property.filepath= /ap
property.filename =${filepath}/ai.log
property.filename1 =${filepath}/file1.log
property.filename2 =${filepath}/file2.log

filter.threshold.type = ThresholdFilter
filter.threshold.level = debug

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

appender.file.type = RollingFile
appender.file.name = RootFile1
appender.file.fileName = ${filename}
appender.file.filePattern = ${filepath}/%d{yyyyMMdd}/cpl.mw.%d{yyyyMMdd}.%i.log.gz
appender.file.layout.type = PatternLayout
#appender.file.layout.pattern = %d %p %C{1.} [%t] %m%n
appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
appender.file.policies.type = Policies
appender.file.policies.time.type = TimeBasedTriggeringPolicy
appender.file.policies.time.interval …
Run Code Online (Sandbox Code Playgroud)

java log4j2

5
推荐指数
1
解决办法
2万
查看次数

Netsuite 错误:您必须将特定于帐户的域与 2019.1 SOAP Web 服务端点一起使用

我正在使用 SOAPUI 调用 netsuite 的soap API 但是当我添加 wsdl https://5450407-sb1.app.netsuite.com/wsdl/v2019_1_0/netsuite.wsdl

我收到以下错误:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>
                soapenv:Server.userException
            </faultcode>
            <faultstring>
                You must use account-specific domains with the 2019.1 SOAP web services endpoint. You can use the SOAP getDataCenterUrls operation to obtain the correct domain. Or, go to Setup > Company > Company Information in the NetSuite UI. Your domains are listed on the Company URLs tab.
            </faultstring>
            <detail>
                <platformFaults:unexpectedErrorFault xmlns:platformFaults="urn:faults_2019_1.platform.webservices.netsuite.com">
                    <platformFaults:code>
                        USER_ERROR
                    </platformFaults:code>
                    <platformFaults:message>
                        You must use …
Run Code Online (Sandbox Code Playgroud)

soapui netsuite

4
推荐指数
2
解决办法
2520
查看次数

致命信号 11 (SIGSEGV),代码 1,tid 21741 (RenderThread) 中的故障地址 0x48 在某些设备的后壳中

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x48 in tid 21741 (RenderThread) in tid 21741 (RenderThread) in the lastest case in some device.If有人知道请回答。由于这个错误android应用程序在每次活动中崩溃。

<activity
        android:name=".HomeActivity"/>
Run Code Online (Sandbox Code Playgroud)

碰撞

android crash-reports android-activity crashlytics

3
推荐指数
1
解决办法
2562
查看次数

Alter TYPE RENAME VALUE在Postgres 10中有效,但在Postgres 9.6中无效吗?

我正在使用Postgres 10.3。

基于这个问题,我使用:

ALTER TYPE name RENAME VALUE attribute_name TO new_attribute_name
Run Code Online (Sandbox Code Playgroud)

重命名枚举值。

但是我需要一个与Postgres 9.6一起使用的解决方案,该解决方案不需要pg_enum手动更新,因为它需要我没有的权限。

postgresql postgresql-9.5 postgresql-10

3
推荐指数
1
解决办法
593
查看次数

ResolverStyle.STRICT在@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)中不起作用

我在用:

@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
@JsonFormat( pattern = "MM-dd-yyyy" )
private LocalDate start;
Run Code Online (Sandbox Code Playgroud)

但它接受02-30-201902-28-2019自动转换为。但是我想限制那个日期。

我还使用了:

@DateTimeFormat(iso = java.time.format.DateTimeFormatter.ISO_DATE)
@JsonFormat( pattern = "MM-dd-yyyy" )
private LocalDate start;
Run Code Online (Sandbox Code Playgroud)

但会产生编译时错误:Attribute value must be constant

Ankit在这里:

我有同样的问题,也用来u代替y但没有帮助:

@FutureOrPresent
@DateTimeFormat( iso = DateTimeFormat.ISO.DATE,pattern = "MM-dd-uuuu")
@JsonFormat( pattern = "MM-dd-uuuu" )
private LocalDate start;
Run Code Online (Sandbox Code Playgroud)

我想限制解析时间。它接受02-31-2019并自动转换为02-28-2019。请参阅:https//stackoverflow.com/a/41104034/6097074

现在09/08/2018

如果我使用的是:private LocalDate start; //不使用DateTimeFormat和JsonFormat批注

如果我使用,这工作正常:yyyy-MM-dd在json中格式化日期,即2014-01-01。但是我需要解析为MM-dd-yyyy

谢谢您的帮助,以解决此问题。

java validation spring datetime date

2
推荐指数
1
解决办法
1591
查看次数