这类似于How can I force two elements to always stay on the same line in a <td>,但我希望元素只与前一个元素的-last字符对齐。
root@pupim:~/workspace/tcc-gestao-residuos# mvn tomcat7:run-war -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TCC Gestão de Resíduos UEM 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run-war (default-cli) @ tcc-gestao-residuos >>>
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ tcc-gestao-residuos ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ tcc-gestao-residuos ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ tcc-gestao-residuos ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ tcc-gestao-residuos ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ tcc-gestao-residuos ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ tcc-gestao-residuos ---
[INFO] Packaging webapp
[INFO] Assembling webapp [tcc-gestao-residuos] in [/root/workspace/tcc-gestao-residuos/target/tcc-gestao-residuos]
[INFO] Processing war project
[INFO] Copying webapp resources [/root/workspace/tcc-gestao-residuos/src/main/webapp]
[INFO] Webapp assembled in [319 msecs]
[INFO] Building war: /root/workspace/tcc-gestao-residuos/target/tcc-gestao-residuos.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run-war (default-cli) @ tcc-gestao-residuos <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run-war (default-cli) @ tcc-gestao-residuos ---
[INFO] Running war on http://localhost:8080/tcc-gestao-residuos
[INFO] Creating Tomcat server configuration at /root/workspace/tcc-gestao-residuos/target/tomcat
[INFO] create webapp with contextPath: /tcc-gestao-residuos
ago 10, 2015 5:47:37 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["http-bio-8080"]
ago 10, 2015 5:47:37 PM org.apache.catalina.core.StandardService startInternal
INFORMAÇÕES: Starting service Tomcat
ago 10, 2015 5:47:37 PM org.apache.catalina.core.StandardEngine startInternal
INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/7.0.47
ago 10, 2015 5:47:37 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFORMAÇÕES: validateJarFile(/root/workspace/tcc-gestao-residuos/target/tcc-gestao-residuos/WEB-INF/lib/javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
INFORMAÇÕES: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
ago 10, 2015 5:47:41 PM org.apache.catalina.startup.TaglibUriRule body
... 'org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor'
17:47:42.297 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
17:47:42.329 [localhost-startStop-1] DEBUG o.s.w.c.s.AnnotationConfigWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@6316386e]
17:47:42.331 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
17:47:42.335 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Searching for key 'spring.liveBeansView.mbeanDomain' in [servletConfigInitParams]
17:47:42.336 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Searching for key 'spring.liveBeansView.mbeanDomain' in [servletContextInitParams]
17:47:42.336 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Searching for key 'spring.liveBeansView.mbeanDomain' in [jndiProperties]
17:47:42.336 [localhost-startStop-1] DEBUG o.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain]
17:47:42.336 [localhost-startStop-1] DEBUG o.s.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].
17:47:42.337 [localhost-startStop-1] DEBUG o.springframework.jndi.JndiTemplate - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain]
17:47:42.338 [localhost-startStop-1] DEBUG o.s.jndi.JndiPropertySource - JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].. Returning null.
17:47:42.338 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties]
17:47:42.338 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]
17:47:42.338 [localhost-startStop-1] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]
17:47:42.340 [localhost-startStop-1] DEBUG o.s.web.context.ContextLoader - Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
17:47:42.349 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 377 ms
17:47:42.371 [localhost-startStop-1] DEBUG o.s.o.j.s.OpenEntityManagerInViewFilter - Initializing filter 'openEntityManagerInViewFilter'
17:47:42.374 [localhost-startStop-1] DEBUG o.s.o.j.s.OpenEntityManagerInViewFilter - Filter 'openEntityManagerInViewFilter' configured successfully
17:47:42.376 [localhost-startStop-1] DEBUG o.s.web.filter.DelegatingFilterProxy - Initializing filter 'delegatingFilterProxy'
ago 10, 2015 5:47:42 PM org.apache.catalina.core.StandardContext filterStart
GRAVE: Exception starting filter delegatingFilterProxy
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:698)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1174)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1051)
at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326)
at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:235)
at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:199)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:111)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
ago 10, 2015 5:47:42 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error filterStart
ago 10, 2015 5:47:42 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/tcc-gestao-residuos] startup failed due to previous errors
ago 10, 2015 5:47:42 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: Closing Spring root WebApplicationContext
17:47:42.393 [localhost-startStop-1] INFO o.s.w.c.s.AnnotationConfigWebApplicationContext - Closing Root WebApplicationContext: startup date [Mon Aug 10 17:47:41 BRT 2015]; root of context hierarchy
17:47:42.394 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
17:47:42.394 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f8fe9ce: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor]; root of factory hierarchy
ago 10, 2015 5:47:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/tcc-gestao-residuos] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
ago 10, 2015 5:47:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/tcc-gestao-residuos] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
ago 10, 2015 5:47:42 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["http-bio-8080"]
如果有足够的空间,我们会得到:
<th>
{dynamic text}
<i>{static icon}</i>
</th>
如果没有足够的空间,它会换行:
dynamic text here{icon}
但它永远不应该将{icon}放在它自己的行上:
dynamic text
here{icon}
我希望静态图标能够粘贴在动态文本的最后一个单词上。