1.gradle Project
Java projects created in Eclipse are managed with Gradle. What I'm going to review is the knowledge of using testng in Gradle. First testng the environment configuration as in the previous article.
There are 2 Java files in the test directory. One is Persontest.java, one is simpletest.
Persontest.java: A test class written with JUnit.
Simpletes
> Almost every Web Service provides two types of routes: __cgi _ and _ rest _.
> CGI: 'http: // example/user/Zhang san'
> Rest: 'http: // example/user? Name = James'
> At a glance, the differences between the two styles are listed above. Of course, they can also be mixed.
Grails also supports these routing styles. Although it emphasizes that the Convention is better than the configuration, it cannot avoid precise control over the URI routing address
Ruby on rail Despite the ongoing interest in software engineering, enterprise-class development rooms still have a lot of mistrust. Why? "Can the scripting language framework also fit into enterprise applications?" "The main argument for ROR is that they lack enterprise-class services (such as distributed transactions, messages, etc.)." For many businesses, platforms without these services are not considered at all. Grail is a fast enterprise-level rapid application development tool. It is based
One of the Android Gradle compilation learning Diaries (building the Gradle environment and compiling Android applications), androidgradle
If you like my blog, please pay attention to my Weibo, please click here (http://weibo.com/kifile), thank you
Reprinted please indicate the source (http://blog.csdn.net/kifile), thank you again
Android Gradle compilation lea
Gradle tutorial description User Guide 1 ~ Chapter 6 gradle User Guide
To use Android Studio, you need this build tool.
This document is a rough example of the notes in the first six chapters of the official user guide.
Download the latest Gradle version (Currently 2.2) and decompress it. Configure the bin directory of Gradl
Gradle, a new generation of DSL-based Java build tool, and a new generation of gradle
What is Gradle?Gradle is an automated build tool based on the Groovy language and mainly for Java applications and DSL syntax. Speaking of Java's automated build tools, everyone must be familiar with Ant and Maven.
The ORM-style domain will eventually be reflected in the database table, and the subordination of the domain class will be reflected by the database Association ing.
One-to-many/multiple-to-one
---
_ Example __:
Class country:[PK] + id+ Name
Class province:[PK] + id+ Name[FK]-> + country
The 'country' country can have multiple provinces. In terms of countries and provinces, it is a _ one-to-many _ relationship.The 'province 'province can belong to only one country, and the 'country' indicates t
Grails has a good integration of Ajax, which describes the use of jquery's Getjson method for asynchronous Ajax transmission.Steps to use:
Introduction of jquery (. GSP page introduced Jquery.js)
Add Ajax calling methods in Javascript scripts
function Isproductionnameexist (o) { var productName = "Test"; var mode = "Test"; $.getjson ("Isproductionnameexist", //action in controller
grails:2.4.xIde:intellij Idea 13.xIf there is a ring reference between Grails domain objects, using the as JSON directly will only output the ID of the associated object, and if you use deep it will also be an error and deep does not support hierarchical output settings. Not up to some application requirements.So I turned over the internet a lot of information, and finally tested a relatively simple and rel
Oracle announces that it will participate in the Grails Open source program, helping to improve the productivity of Java program developers by closely matching the groovy instruction language.Grails builds on open source technologies such as spring, Hibernate, and Sitemesh, providing a rails-like platform for seamless integration with the Java platform. Groovy is a "dynamic" or instruction language. Dynamic languages are generally used to speed up and
For other translated chapters, follow the items on GitHub: https://github.com/msdx/gradledoc/tree/1.12, or visit: http://gradledoc.qiniudn.com/1.12/ Userguide/userguide.htmlThis article original, reproduced please indicate the source: http://blog.csdn.net/maosidiaoxian/article/details/41343615My translation of Gradle is subject to the project on GitHub and the documentation on http://gradledoc.qiniudn.com. Where the translation is found to be wrong, t
Label: grails createcriteria group by hql I. totalcount Recently, when using group by in createcriteria in grails development project, we found that the totalcount in pagedresultlist has a problem. After reading a lot of unofficial official materials, I finally came up with a temporary and convenient solution: Int totalcount = domain.exe cutequery ('select count (*) fromDomainWhere ID in (select Min (ID
Grails Domain has the function of automatic verification, but when I define the attribute of Domain, I define a field of the int type, and then use String when entering the field on the page, then he starts the automatic verification function and reports the following verification information.
Failed to convert property value of type [java. lang. String] to required type [int] for propertyAge; nested exception is java. lang. IllegalArgumentException:
Grails Development platform In view technology, my favorite technology, in addition to the introduction of flash variables, is template technology.
The most convenient reuse technology for the Java platform in view is include. Although tiles and so on are very powerful, but because of the cumbersome configuration, so that they as the entire project layout outside, almost no application. Include is convenient to use, but it has a natural weakness in t
After upgrading to Grails 2.3.2, run the Times as follows:
Copy Code code as follows:
Exception in thread "main"
Error |
Forked Grails VM exited with error
Java.lang.instrument Assertion FAILED * * *: "!erroroutstanding" with the message transform method called FAILED at.. /.. /.. /src/share/instrument/jplisagent.c line:844
See jira:http://jira.grails.org/browse/
Grails uses log4j log information and log4j configuration information is written in Config.groovy files.
One, Grails 1.1 can specify different logging levels for the code under different packages, such as:
log4j = { // 设置控制器和GSP页面的级别为error error 'org.codehaus.groovy.grails.web.servlet', // controllers 'org.codehaus.groovy.grails.web.pages' // GSP // 设置插件中的日志级别为warn warn 'org.codehaus.groovy.grails.
Groovy grails SCI Share First tutorial 1, download tool:
Http://www.springsource.org/downloads/sts-ggts
Direct address: Spring-tool-suite-3.0.0.release-e4.2-win32-installer.exe
2. Install and Open
3. Install Groovy and Grails plugins
4. Create a Grails project
5. Add the required files
6. Add Project to Server
7. Running the server
Http:
Gradle tutorial description Chapter 1 Dependency management basics, gradle User Guide8.1 what is dependency management?
Dependency management is roughly divided into two parts:
· Build depends on something
· Build release something
8.2 declare your dependencies. Let's take a look at some dependency declarations. This is a basic build script:
For example, declare dependency
Build.
First, install Gradle:1. Download the Gradle binary installation packageAddress: https://gradle.org/install/, for example, to download a binary package.2. Unzip the installation package to local, such as: C:\software\gradle4.6 path3. Configure Environment variables:Gradle_home:c:\ Learning \gradle4.6Path:;%gradle_home%\bin4. See if the installation was successful:Run command prompt as administrator, enter:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.