spring-roo

How to add Spring roo on Spring Tools Suite

為{幸葍}努か 提交于 2020-01-13 12:02:23
问题 I 've installed sts but the create a new roo project does not exists, what i have to do to add spring roo? In the previous version i could create it but not in 3.5.0 回答1: In Spring tool suite, click on the Extensions link in the Dashboard. Search for Spring Roo and install it. 回答2: STS 3.5.0 doesn't include Spring Roo. You must install it manually using the STS Dashboard. 来源: https://stackoverflow.com/questions/23365784/how-to-add-spring-roo-on-spring-tools-suite

MultipartResolver is not working

≯℡__Kan透↙ 提交于 2020-01-13 11:13:12
问题 I using developing a RESTFul web service using Maven and Spring Roo. In my configuration xml file I defined a multipartResolver bean because I am uploading files of 300KB: <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="400000" /> <property name="maxInMemorySize" value="400000" /> </bean> The files are uploaded successfully and pushed into a stack. These file are CommonsMultipartFile or

Weblogic 10.3.3 trying to load org.eclipse.persistence.jpa.PersistenceProvider instead of configured Hibernate Provider

允我心安 提交于 2020-01-10 20:06:34
问题 Good Day all , I am having this problem since many days now , I was able to successfully deploy JPA2.0 appliaction on weblogic 10.3.3 , the application can run select queries using JPA. But when I try to run a create or update information on the same table I get below exception [code] java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider [/code] This is very strange because in my persistence.xml I have

Weblogic 10.3.3 trying to load org.eclipse.persistence.jpa.PersistenceProvider instead of configured Hibernate Provider

[亡魂溺海] 提交于 2020-01-10 20:06:28
问题 Good Day all , I am having this problem since many days now , I was able to successfully deploy JPA2.0 appliaction on weblogic 10.3.3 , the application can run select queries using JPA. But when I try to run a create or update information on the same table I get below exception [code] java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider [/code] This is very strange because in my persistence.xml I have

Spring Persistence archive and entitymanager is null when accessing from web-application

孤街醉人 提交于 2020-01-05 04:41:06
问题 I've created a jar file through spring roo (maven project - persistence archive) unit tests are running fine, the concerned files are on the following location jarFile/META-INF/persistence.xml jarFile/META-INF/applicationContext.xml jarFile/META-INF/applicationContext-jpa.xml jarFile/META-INF/database.properties Unit tests are running fine. Because its a maven project I added it to local repository by executing the command "mvn install" and after that I added it as a dependency to another

SpringSource Roo Controller Removal

流过昼夜 提交于 2020-01-04 03:56:08
问题 Environment: Windows XP, SpringSource Tool Suite 2.3.2, Roo 1.0.2.Release, Java 1.6.0_10, tc Server 6.0 I'm using the canned Roo generated code. I created an entity and associated controller. Then deleted both classes. The problem I'm seeing is the Roo created home page still shows the "Create/List" section for the deleted classes. I'm executing this within the tc Server, within Eclipse. Any ideas on how to get Roo to update the home page? Thanks, Steve 回答1: Got the answer. I needed to

spring roo vs appfuse generate service /dao layer

爱⌒轻易说出口 提交于 2020-01-01 05:16:25
问题 I am looking for feedback from experienced users on spring roo and appfuse. Which do you think does a better job reverse engineering database tables and generating a service layer, dao layer, and jpa entities? If I am not mistaken, spring roo currently cannot reverse engineer a database. 回答1: You are correct that you can't reverse engineer a database in Roo. There's an open JIRA item for this which you can vote up. However, you could try using the Eclipse Hibernate tools to reverse engineer

How can <global-method-security> work on my controller by Spring-Security?

試著忘記壹切 提交于 2019-12-31 22:41:12
问题 I'm stuck in this issue for a long time. I want to use @Secure to add Access Control to my controller ArticleController.java like this: @RequestMapping(headers = "Accept=application/json") @ResponseBody @Secured("ROLE_ADMIN") public ResponseEntity<String> listJson() { HttpHeaders headers = new HttpHeaders(); headers.add("Content-Type", "application/json; charset=utf-8"); List<Article> result = Article.findAllArticles(); return new ResponseEntity<String>(Article.toJsonArray(result), headers,

The £ sign is shown as a diamond with a question mark in the middle

蹲街弑〆低调 提交于 2019-12-31 07:43:48
问题 I'm creating a webapp which involves displaying financial data to the user. Being from the UK and using GBP £ for currency, this character is used a lot. However, every now and then, the £ is shown as a diamond with a question mark in the middle, and on the web page it throws an invalid charachter UTF-8 byte 1 of 1 byte string. Is there a UTF safe way to display the £ sign? Here is an example of what I am doing at the moment: "Rent Per Annum: £" + '${tenant.currentRent}' 回答1: The particular

Adding a custom page in spring roo

时光怂恿深爱的人放手 提交于 2019-12-30 03:32:08
问题 I have a question about spring roo. How can you add a custom page to your web application? It seems really basic and easy if I'm using standard Servlet, but I'm totally confused to do this in Spring roo. All I want to have is a link in main page (with the menus etc) that links to my custom page. I have tried to add a new Servlet to the application, setting its path mapping to /custompage. but when I access http://localhost:8080/myapp/custompage , it shows that the resource is unavailable. I