任何人都可以帮我在mac Mountain上安装JDK 8吗?
我安装了java_for_os_x_2013002_dp__11m4203.dmg,我可以看到: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home.但不知道还有什么可做的.
如何为新版本创建符号链接等?
我使用Eclipse和maven所以我不希望与它们发生任何冲突.我是一个新的mac用户.
JDK 7已经安装在我的mac上,但我只是想用新的lambda表达式做一些实验.
谢谢你的帮助
我有一个maven项目,我想在项目上使用css,但它只显示index.jsp页面,没有任何图像和CSS.它能取决于什么?
我把我的CSS和图像放在资源下面,这是我的servlet-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<mvc:annotation-driven />
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:default-servlet-handler />
<beans:bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
<beans:import resource="controllers.xml" />
</beans:beans>
Run Code Online (Sandbox Code Playgroud)
请帮忙吗?
当我在我的spring项目中运行此查询时,它只返回一个错误.我尝试了不同的方法,没有任何结果,如果有人可以帮助我会非常好.我有3个表:User,Role和User_Role,我的地址是嵌入的.也使用连接表.
所有其他类都是:User,Role和User_Role spring security
public List<User> getUsersByNameOrLogin(final String value){
List<User> result = new ArrayList<User>(0);
if(value ==null){
return result;
}
final StringBuilder jpql = new StringBuilder("SELECT u FROM User u WHERE ");
jpql.append(" u.lastname like "+value);
jpql.append(" OR u.firstname like "+value);
jpql.append(" OR u.email like "+value);
final String valueLike = "%"+value+"%";
result = entityManager.createQuery(jpql.toString(), User.class)
.setParameter("lastname", valueLike)
.setParameter("firstname", valueLike)
.setParameter("email", valueLike)
.getResultList();
return result;
}
Run Code Online (Sandbox Code Playgroud)
错误是:
无法解析属性:姓氏:用户[SELECT u FROM User u WHERE u.lastname like pappo or u.firstname like pappo or …