我正在用我的论文做一些实验,涉及容器发生的冷启动问题。我的测试应用程序是一个基于 openjdk 映像构建的 Spring Boot 应用程序。我想尝试解决冷启动问题的第一件事是:
准备一个容器,容器中是 openjdk 和 springboot 应用程序使用的库。我启动我的另一个容器,使用现有容器的 ipc 和网络命名空间,然后能够使用 openjdk 和这个容器的库来运行 jar 文件。
我不确定如何实现这一目标?我可以通过使用卷来实现这一点,还是应该寻找一种完全不同的方法?
另一方面,如果我想要 x 个容器运行,我将确保有 x 个预先存在的容器在运行。这是为了确保每个容器都有自己特定的 librarycontainer 可以使用。这样可以吗?
简而言之,我可以通过使用通过 ipc/net 连接的第二个容器来加速 spring boot 应用程序的任何方式;会对我的问题有所帮助。
所以我在我的一个应用程序上启用了proguard.我有一些问题,但我解决了所有问题(必须更新proguard,制作没有空格的android sdk的符号链接)
现在我在另一个应用程序上启用了pro guard,我不断收到此错误:
The "Xamarin.Build.Download.XamarinBuildAndroidAarProguardConfigs" task could not be loaded from the assembly C:\Users\xxx\Desktop\xxx oud\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.dll. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Run Code Online (Sandbox Code Playgroud)
有人知道解决这个问题的方法吗?不确定我还能添加什么
我正在尝试将浮动操作按钮放在应用程序的左下角。
目前它看起来像这样:
我希望它看起来像这样:
我的 XAML 代码:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:xxx;assembly=xxx"
x:Class="xxx.xxx.xxx.xxxx">
<AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<StackLayout AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1">
<StackLayout Orientation="Vertical" VerticalOptions="StartAndExpand">
<StackLayout HorizontalOptions="CenterAndExpand" Margin="0,15,0,0" Orientation="Vertical">
<!--<local:CustomImage Source="logo.png" HeightRequest="100" WidthRequest="100" HorizontalOptions="Center" />-->
<local:CustomImageButton WidthRequest="150" Image="Foto.png" ClassId="Eigendommen" x:Name="buttonFoto" HeightRequest="150"/>
</StackLayout>
<StackLayout Orientation="Vertical" VerticalOptions="CenterAndExpand" Margin="10,0,0,0" x:Name="MainStack" >
<BoxView BackgroundColor="#F15A35" HeightRequest="1" WidthRequest="400" Margin="0,-2,0,5" />
<Label Text="Toegevoegd:" FontSize="Medium" FontAttributes="Bold" />
<StackLayout Orientation="Horizontal">
<StackLayout Orientation="Vertical" IsVisible="False" Margin="10,0,10,0" x:Name="hideImage1">
<local:CustomImage HeightRequest="100" WidthRequest="100"/>
<StackLayout Orientation="Horizontal">
<Label Text="Verwijderen" FontSize="Small" VerticalTextAlignment="Center" />
<local:CustomImageButton Image="close_zwart.png" BackgroundColor="White" Clicked="Hide_Image_Click" HeightRequest="40" …Run Code Online (Sandbox Code Playgroud)