使用@Transactional(value ="erpJPA",propagation = Propagation.NESTED)我有例外
Caused by: org.springframework.transaction.NestedTransactionNotSupportedException:
JpaDialect does not support savepoints - check your JPA provider's capabilities
Run Code Online (Sandbox Code Playgroud)
firebird不支持1.5版的嵌套事务吗?
我已经通过在standalone.xml中添加以下内容来启用SOAP日志记录,如Jboss高级用户指南中所述:
<system-properties>
<property name="org.apache.cxf.logging.enabled" value="true"/>
</system-properties>
Run Code Online (Sandbox Code Playgroud)
此配置并不能完全打印XML消息.我确信CXF支持漂亮的打印,因为AbstractLoggingInterceptor.setPrettyLogging()库中有一个方法.
如何在JBoss 7中启用SOAP请求和响应的漂亮打印.
我无法将 Maven 工件部署到 S3。
即使我对存储桶具有写访问权限,我也会收到 AccessDenied 异常。
当我运行时mvn deploy -DskipTests,出现以下错误:
Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 5CFBE8472B760710; S3 Extended Request ID: cxvn4bs9sg2hNEZRbno2dxocwSj8i6jCSNSQtsZL2H7h2y/cY2koFhExrGv3mACLK+kfcxHfKkg=), S3 Extended Request ID: cxvn4bs9sg2hNEZRbno2dxocwSj8i6jCSNSQtsZL2H7h2y/cY2koFhExrGv3mACLK+kfcxHfKkg=
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1630)
Run Code Online (Sandbox Code Playgroud)
wagon插件触发的S3请求:
>> PUT /release/ HTTP/1.1
>> Host: inuka-mvn-repo.s3.eu-west-1.amazonaws.com
>> x-amz-content-sha256: UNSIGNED-PAYLOAD
>> Authorization: AWS4-HMAC-SHA256 Credential=AKIAUMQWI47EFQZPBQW3/20191018/eu-west-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;user-agent;x-amz-acl;x-amz-content-sha256;x-amz-date, Signature=b20a1e2fb100eae4b70d7c0922fde9164bc7326d02074627e54d860359d8b298
>> X-Amz-Date: 20191018T145734Z
>> x-amz-acl: public-read
>> User-Agent: aws-sdk-java/1.11.276 Mac_OS_X/10.13.6 Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23 java/1.8.0_60
>> amz-sdk-invocation-id: 47ea0bcd-c021-6d48-2547-f9a276c055cd
>> amz-sdk-retry: 0/0/500
>> Content-Type: application/octet-stream
>> …Run Code Online (Sandbox Code Playgroud) 我对GridView中单元格的高度有问题.我的每个单元格都会有一个imageView,如下所示:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<GridView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:id="@+id/eventGridView" android:numColumns="2"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
这是每个单元格的ImageView
<com.example.scheduling_android.view.RoundedCornerImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:maxWidth="150dp"
android:maxHeight="150dp"
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/eventImageView"
android:adjustViewBounds="false"/>
Run Code Online (Sandbox Code Playgroud)
我正在为我的imageView玩不同的图像大小.我得到的是,每当我的图像变大(例如,400 x 400px)时,单元格的高度变得非常高(大约是宽度的两倍,请注意我将网格设置为使用2列).但是,当我将图像保存为较小的尺寸(例如,160 x 160px)时,gridView正确显示.高度和宽度匹配.
这是一个截图:

什么似乎是问题?可能是大图像导致gridView错误地计算其单元格的高度?我该怎么做才能解决这个问题?
我正在尝试使用 AWS CodeDeploy。我用aws deploy push --debug命令。要上传的文件约为 250 KB。但上传尚未完成。以下是显示的日志。
2017-10-27 11:11:40,601 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
PUT
/frontend-deployer/business-services-0.0.1-SNAPSHOT-classes.jar
partNumber=39&uploadId=.olvaJkxreDZf1ObaHCMtHmkQ5DFE.uZ9Om0sxZB08YG3tqRWBxmGLTFWSYQaj9mHl26LPJk..Stv_vPB5NMaV.zAqsYX6fZz_S3.uN5J4FlxHZFXoeTkMiBSYQB2C.g
content-md5:EDXgvJ8Tt5tHYZ6Nkh7epg==
host:s3.us-east-2.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20171027T081140Z
content-md5;host;x-amz-content-sha256;x-amz-date
UNSIGNED-PAYLOAD
...
2017-10-27 11:12:12,035 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [PUT]>
2017-10-27 11:12:12,035 - MainThread - botocore.awsrequest - DEBUG - Waiting for 100 Continue response.
2017-10-27 11:12:12,189 - MainThread - botocore.awsrequest - DEBUG - 100 Continue response seen, now sending request body.
Run Code Online (Sandbox Code Playgroud)
尽管文件相当小 (250 KB),上传也无法完成。
另一方面,通过aws …
我有以下实体配置:
entity AirplaneModelSeat {
id Long,
seatNo String required
}
relationship ManyToOne {
AirplaneModelSeat{modelId(model)} to AirplaneModel
}
Run Code Online (Sandbox Code Playgroud)
此实体配置创建了这样一个表:
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| seat_no | varchar(255) | NO | | NULL | |
| model_id_id | bigint(20) | YES | MUL | NULL | |
+-------------+--------------+------+-----+---------+----------------+
Run Code Online (Sandbox Code Playgroud)
如何在JDL-Studio中为(seat_no,model_id_id)列组合应用唯一约束?
如果在JDL-Studioi中无法实现这一点,还有其他任何方法可以实现这一目标吗?
我想访问表单控件并有条件地禁用某些控件。在以下代码中,表单没有控件:
Component
export class OfferDialogComponent implements OnInit, AfterViewInit {
freemium = false;
@ViewChild('editForm') editForm: NgForm;
ngAfterViewInit(): void {
this.editForm.form.get("trialPeriod").disable();
}
}
Run Code Online (Sandbox Code Playgroud)
Template
<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">
Run Code Online (Sandbox Code Playgroud)
如何有条件地访问和初始化表单控件?
我通过spring-roo生成了一个primefaces项目.第一件事是在不触及生成的代码的情况下调用以下命令:
mvn jetty:run
Run Code Online (Sandbox Code Playgroud)
Maven给出了一个错误,表明它找不到org.springframework.roo:org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT 依赖关系.该项目包含以下存储库:
<repositories>
<repository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</repository>
<repository>
<id>prime-repo</id>
<url>http://repository.primefaces.org</url>
<name>PrimeFaces Maven Repository</name>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</pluginRepository>
<pluginRepository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</pluginRepository>
<pluginRepository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</pluginRepository>
</pluginRepositories>
Run Code Online (Sandbox Code Playgroud)
这是我可以找到org.springframework.roo:org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT 依赖的任何其他存储库吗?
我正在使用Swagger Codegen生成JavaScript客户端:
swagger-codegen generate -i http://localhost:8080/v2/api-docs \
-l javascript -o subscreasy-javascript-client
Run Code Online (Sandbox Code Playgroud)
生成的模块的名称是api-documentation.
如何配置swagger-codegen以便使用自定义名称生成JavaScript模块?
我正在尝试更新 hashcorp/aws 提供商版本。
我添加了包含以下内容的 terraform.tf 文件:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
Run Code Online (Sandbox Code Playgroud)
后来我尝试使用以下方法更新模块:
terraform init -upgrade
Run Code Online (Sandbox Code Playgroud)
然而,我已经开始明白:
Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints >= 2.0.0, ~> 3.27, ~> 4.0
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题呢?
我angular-froala-wysiwyg在我的项目中使用.
我的依赖配置是:
{
...
"angular-froala-wysiwyg": "^2.7.2-1",
...
}
Run Code Online (Sandbox Code Playgroud)
我有一个依赖,我得到以下错误:
我开始收到以下错误.我之前没有收到此错误:
[ERROR] Error: Metadata version mismatch for module /Users/halil/Projects/abonelik-sihirbazi/src/abonelik-sihirbazi-2/business-services/node_modules/angular-froala-wysiwyg/editor/editor.directive.d.ts, found version 4, expected 3
[ERROR] at StaticSymbolResolver.getModuleMetadata (/Users/halil/Projects/abonelik-sihirbazi/src/abonelik-sihirbazi-2/business-services/node_modules/@angular/compiler/bundles/compiler.umd.js:25590:34)
[ERROR] at StaticSymbolResolver._createSymbolsOf (/Users/halil/Projects/abonelik-sihirbazi/src/abonelik-sihirbazi-2/business-services/node_modules/@angular/compiler/bundles/compiler.umd.js:25378:46)
[ERROR] at StaticSymbolResolver.getSymbolsOf (/Users/halil/Projects/abonelik-sihirbazi/src/abonelik-sihirbazi-2/business-services/node_modules/@angular/compiler/bundles/compiler.umd.js:25359:14)
Run Code Online (Sandbox Code Playgroud)