如何在HSQL中关闭表名和列名的强制大写模式?
<artifactId>hsqldb</artifactId>
<version>2.3.1</version>
Run Code Online (Sandbox Code Playgroud)
OS: Windows 7 x64
有人可以给我一个有用的链接,在那里我可以找到有关转换Jenkins作业的复杂 xml配置的信息吗?
这是一个Jenkins工作示例:
<project>
<actions/>
<description>Description</description>
<logRotator class="hudson.tasks.LogRotator">
<!-- ...-->
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty/><!-- ...-->
</properties>
<scm class="org.jenkinsci.plugins.multiplescms.MultiSCM" plugin="multiple-scms@0.5">
<scms>
<hudson.plugins.git.GitSCM plugin="git@2.4.0"/><!-- ...-->
<hudson.plugins.git.GitSCM plugin="git@2.4.0"/><!-- ...-->
</scms>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<jdk>Default</jdk>
<triggers>
<hudson.triggers.TimerTrigger/><!-- ...-->
</triggers>
<concurrentBuild>false</concurrentBuild>
<customWorkspace>$HUDSON_WD/$REVISION/checkout</customWorkspace>
<builders/>
<publishers>
<hudson.plugins.globalenvvar.GlobalEnvironmentVariablePublisher plugin="globalenvvar@1.0"/><!-- ...-->
<hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.28"/><!-- ...-->
<hudson.plugins.templateproject.ProxyPublisher plugin="template-project@1.5"/><!-- ...-->
</publishers>
<buildWrappers>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.7.2"/>
</buildWrappers>
</project>
Run Code Online (Sandbox Code Playgroud) 我有这样的类和Spring上下文.
如何修复这个错误的Java配置,而不是xml?
我试过其他帖子的一些解决方案,但没有成功.
@Service
@Transactional
public class XCalculationService implements VoidService<X> {
}
public interface VoidService<Input> {
}
@AllArgsConstructor
public class XService {
private XCalculationService calculationService;
}
@Configuration
public class ServiceConfiguration {
@Bean
public OrderService orderService(XCalculationService calculationService) {
return new XService(calculationService);
}
@Bean
public XCalculationService calculationService() {
return new XCalculationService ();
}
}
Run Code Online (Sandbox Code Playgroud)
错误
BeanNotOfRequiredTypeException: Bean named 'calculationService' is expected to be of type 'com.x.XCalculationService' but was actually of type 'com.sun.proxy.$Proxy
Run Code Online (Sandbox Code Playgroud) 配置
@Configuration
@PropertySources({
@PropertySource("classpath*:properties/test-database.properties")
})
public class DataSourceConfiguration {//...
}
Run Code Online (Sandbox Code Playgroud)
道具位置
D:\Projects\opti\dao\src\main\resources\properties\test-database.properties
Run Code Online (Sandbox Code Playgroud)
D:\Projects\opti\dao\src\main\resources 标记为资源文件夹。
为什么我有下一个例外?
Exception in thread "main" java.lang.IllegalStateException: stream has already been operated upon or closed
at java.util.stream.AbstractPipeline.<init>(AbstractPipeline.java:203)...
Run Code Online (Sandbox Code Playgroud)
com.search.offer.OffersSelector.isGood(OffersSelector.java:23)如何更改代码来修复它?
Stream<String> titleExclusions = ResourceUtility.contentToUtf8TreeSet("+.txt").
stream().filter(item -> item.length() == 0).collect(Collectors.toSet()).stream();
//...
titleExclusions.filter(tittle::contains).collect(Collectors.toSet()).size() == 0;//line 23
Run Code Online (Sandbox Code Playgroud) 如何用collect代替?
List<Serializable> result = new ArrayList<>();
entries.forEach(entry-> result.add(session.save(entry)));
Run Code Online (Sandbox Code Playgroud) 我试图在 YML 中为 jpa 设置休眠方言,
检查了许多主题,但没有设置:
spring:
datasource:
hikari:
allow-pool-suspension: true
connection-timeout: 1000
name: testDb
jpa:
database: h2
generate-ddl: false
database-platform: h2
package-to-scan: com.x.model
properties:
hibernate:
dialect: com.x.data.core.hibernate.dialect.ExtendedH2Dialect
h2:
console:
enabled: true
path: /h2
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
java ×4
spring ×3
annotations ×1
collections ×1
exception ×1
filter ×1
for-loop ×1
groovy ×1
hibernate ×1
hsqldb ×1
java-8 ×1
java-stream ×1
jenkins ×1
jpa ×1
lambda ×1
lowercase ×1
properties ×1
spring-boot ×1
sql ×1