Wicket + Spring Boot + .war文件部署(Wicket + Spring Boot + .war file deployment)
建立在这里的例子: https : //github.com/Pentadrago/spring-boot-example-wicket
并考虑到这里的jar-to-war指南: https : //spring.io/guides/gs/convert-jar-to-war/
我想将现有的Wicket + Spring(使用data-jpa和security)转换为Spring Boot。 让fat-jar设置工作相当容易,但到目前为止,我已经证明不可能将此设置转换为.war文件以在Tomcat中部署。问题源于冲突的指示:
- 一方面从非
@Configuration
类extends org.springframework.boot.context.web.SpringBootServletInitializer
,用于jar-to-war转换指南,- 而另一个
implements org.springframework.boot.context.embedded.ServletContextInitializer
,用于fat-jar Wicket示例的@Configuration
标记类。我无法将两者对齐,以便在使用嵌入式容器进行调试时以及在Tomcat中部署为.war时获得正常工作的应用程序。
任何人都可以告诉我如何设置一个弹簧启动的wicket应用程序,我可以部署为.war文件?
Building on the example here: https://github.com/Pentadrago/spring-boot-example-wicket
And taking into account the jar-to-war guide here: https://spring.io/guides/gs/convert-jar-to-war/
I'd like to convert my existing Wicket + Spring (using data-jpa and security) to Spring Boot. It's been fairly easy to get the fat-jar setup to work, but it has so far proved impossible for me to convert this setup into a .war file to deploy in Tomcat.The issue stems from the conflicting instructions to:
- on the one hand
extends org.springframework.boot.context.web.SpringBootServletInitializer
from a non-@Configuration
class for the jar-to-war conversion guide,- while on the other
implements org.springframework.boot.context.embedded.ServletContextInitializer
for a@Configuration
marked class for the fat-jar Wicket example.I've not been able to align the two such that I get a working application both when debugging with the embedded container, and when deployed as .war in Tomcat.
Can anyone tell me how I can setup a spring-boot enabled wicket application that I can deploy as a .war file?
原文:https://stackoverflow.com/questions/25532830
最满意答案
在你的三角形上:
- 删除保证金
- 明确设置路径高度(“22”非常接近你所拥有的)。
这应该可以防止三角形的阴影被剪裁。
这是xaml:
<Grid Height="50" Width="60" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="20" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Rectangle Grid.Column="1" Stroke="Black" Fill="White" > <Rectangle.Effect> <DropShadowEffect Opacity="0.5" ShadowDepth="4" BlurRadius="10" /> </Rectangle.Effect> </Rectangle> <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Data="M44.386378,164.8791 L22.983157,171.42119 44.713478,176.58567" Width="23.167" Height="22"> <Path.Effect> <DropShadowEffect BlurRadius="10" Opacity="0.5" ShadowDepth="4" /> </Path.Effect> </Path> </Grid>
On your triangle:
- Remove the Margin
- Set the Path height explicitly ("22" is pretty close what you have there).
That should prevent the triangle's shadow from being clipped.
Here's the xaml for that:
<Grid Height="50" Width="60" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="20" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Rectangle Grid.Column="1" Stroke="Black" Fill="White" > <Rectangle.Effect> <DropShadowEffect Opacity="0.5" ShadowDepth="4" BlurRadius="10" /> </Rectangle.Effect> </Rectangle> <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Data="M44.386378,164.8791 L22.983157,171.42119 44.713478,176.58567" Width="23.167" Height="22"> <Path.Effect> <DropShadowEffect BlurRadius="10" Opacity="0.5" ShadowDepth="4" /> </Path.Effect> </Path> </Grid>
相关问答
更多-
不确定这里的波动究竟是什么意思,但是如果你想改变text-shadow的模糊半径,你可以在这里使用animation ...... 我正在使用@keyframes和动画X Y和模糊text-shadow 。 如果需要,只需将值8px更改为其他值,即可为特定轴或模糊半径设置动画。 #shadow { text-shadow: 4px 4px 4px #aaa; animation: animate-shadow 1s ease-in infinite; } @keyframes anima ...
-
使用JavaFx你应该使用Button而不是JButton ( Swing组件)。 您可以编程设置阴影,例如: DropShadow shadow = new DropShadow(); Button button = new Button(); button.setEffect(shadow); 这里有一个关于 JavaDoc的关于DropShadow的参考 ,可能会派上用场。 Using JavaFx you should use Button rather than JButton(Swing co ...
-
路径与破碎的阴影效果(Path with broken shadow effect)[2023-08-16]
在你的三角形上: 删除保证金 明确设置路径高度(“22”非常接近你所拥有的)。 这应该可以防止三角形的阴影被剪裁。 这是xaml:重叠投影效果(Overlap Drop Shadow Effect)[2022-12-01]
由于Grid是一个Panel,它继承了Panel.ZIndex附加属性。 可以使用这个属性从字面上设置Z-index,而不是像Phil在他的例子中那样从XAML顺序中推断它。 非工作示例可以用一对附加属性修复:菜单与阴影效果(Menu With Shadow Effect)[2022-07-10]
您可以使用伪元素 - DEMO上的径向渐变来执行此操作 CSS: ul { margin: 5em auto; padding: 0; background: silver; text-align: center; } li { display: inline-block; position: relative; margin: 1em; padding: .1em 2em; background: #414141; color ...IE的盒子阴影效果(Box-shadow-effect for IE)[2022-01-21]
预IE 9: filter: progid:DXImageTransform.Microsoft.dropShadow(attribute1=value1, attribute2=value2, etc); 后IE8: -ms-filter: "progid:DXImageTransform.Microsoft.dropShadow(attribute1=value1, attribute2=value2, etc)"; Pre-IE 9: filter: progid:DXImageTransform ...QML内阴影效果(QML Inner Shadow effect)[2023-01-04]
使用效果的“正确”方法 - 所需的引号应该是这样的: import QtQuick 2.0 import QtGraphicalEffects 1.0 Item { id: root width: 300 height: 300 Item { id: src anchors.fill: parent Rectangle { id: myRectangle anchors.centerIn: p ...将RenderTransform应用于阴影形状。 设置比例以使其变大:你可以参考下面的链接在uitableview中的阴影效果,这将有助于你 尝试这个 一个基本的观点是它是一个CALayer层。 您可以通过视图的图层属性来访问它: myView.layer 在文档中CALayers有几个控制阴影的属性。 你应该能够告诉导航栏的图层投下阴影。 随着你想要投下阴影的任何其他内容层。 myView.layer.shadowOffset myView.layer.shadowRadius 您需要确保将QuartzCore框架添加到您的项目以访问此属性 This can be ac ...Css滚动内容阴影效果(Css scroll content shadow effect)[2024-01-16]
您可以尝试使用box-shadow并根据scrollTop值动态应用它onscroll事件。 也许是这样的: document.querySelector('div').onscroll = function() { this.classList[this.scrollTop < 20 ? 'add' : 'remove']('shadow-top'); this.classList[this.scrollHeight - this.clientHeight - this.scrollTop ...相关文章
更多- Spring Boot war包启动
- 什么是Spring boot
- Spring Boot上传文件示例
- 快速了解Spring Boot
- Spring boot入门实例
- Spring boot整合mybatis plus
- Spring Boot CLI使用Shell
- Spring Boot CLI 基于Thymeleaf的示例
- Spring Boot CLI快速入门程序
- Spring Boot CL简介
最新问答
更多- 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
- linux的常用命令干什么用的
- 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
- 如何交换返回集中的行?(How to swap rows in a return set?)
- 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
- 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
- Java中的不可变类(Immutable class in Java)
- WordPress发布查询(WordPress post query)
- 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
- 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
- GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
- 绑定属性设置器未被调用(Bound Property Setter not getting Called)
- linux ubuntu14.04版没有那个文件或目录
- 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
- 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
- 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
- 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
- ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
- linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
- Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
- 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
- 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
- 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
- Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
- 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
- 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
- 如何按部门显示报告(How to display a report by Department wise)
- Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
- Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
- WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)