An easy to use Java MVC server stack
Add act-starter-parent into your pom.xml file
org.actframework
act-starter-parent
1.9.2.0
Or use maven archetype to start a new project:
mvn archetype:generate -B \
-DgroupId=com.mycom.helloworld \
-DartifactId=helloworld \
-DarchetypeGroupId=org.actframework \
-DarchetypeArtifactId=archetype-quickstart \
-DarchetypeVersion=1.9.2.0tips don't forget replace the groupId, artifactId and appName in the above script, or you can use interactive mode to generate your project:
mvn archetype:generate -DarchetypeGroupId=org.actframework -DarchetypeArtifactId=archetype-quickstart -DarchetypeVersion=1.9.2.0Note There are more ActFramework application archetypes for use. Please get them here.
A full stack MVC framework
Unbeatable development experience w/ great performance
Fully JSR330 Dependency Injection support
Superb SPA/Mobile app support
Uncompromising Security
Annotation aware but not annotation stack
Annotation is one of the tool ActFramework used to increase expressiveness. However we do not appreciate crazy annotation stacked code. Instead we make the code to express the intention in a natural way and save the use of annotation whenever possible.
For example, for the following SpringMVC code:
@RequestMapping(value="/user/{userId}/invoices", method = RequestMethod.GET)
public List listUsersInvoices(
@PathVariable("userId") int user,
@RequestParam(value = "date", required = false) Date dateOrNull) {
...
}The corresponding ActFramework app code is:
@GetAction("/user/{user}/invoices")
public List listUsersInvoices(int user, Date date) {
...
}Multi-environment configuration
profile which allows you to organize your configurations in different environment (defined by profile) easily. Take a look at the following configurations from one of our real project:…Suppose on your UAT server, you start the application with JVM option `-Dprofile=uat`, ActFramework will load the configuration in the following sequence:
1. Read all `.properties` files in the `/resources/conf/common` dir
2. Read all `.properties` files in the `/resources/conf/uat` dir
This way ActFramework use the configuration items defined in `uat` profile to overwrite the same items defined in `common` profile. The common items that are not overwritten still effective.Powerful view architecture with multiple render engine support
An unbelievable automate testing framework that never presented in any other MVC frameworks
Commonly used tools
package demo.helloworld;
import act.Act;
import act.Version;
import org.osgl.mvc.annotation.GetAction;
public class HelloWorldApp {
@GetAction
public String sayHelloTo(@DefaultValue("World") String who) {
return "Hello " + who + "!";
}
public static void main(String[] args) throws Exception {
Act.start();
}
}See this 7 mins video on how to create HelloWorld in Eclipse from scratch. or for users without youtube access
…See this 1 hour video on RESTful support or for user without youtube access
See this 7 mins video to understand more about AdaptiveRecord or for user without youtube access
I love PlayFramework v1.x because it is simple, clear and expressive. It brought us a completely different experience in web development with Java. However I don't totally agree with where Play 2.X is heading for, and it looks like I am not the only person with the concern as per this open letter to Play Framework Developers.
I have thought of rolling out something that could follow the road paved by Play 1.x, something that is simple, clear, expressive and Java (specifically) developer friendly. About one and half year after that I decide I could start the project seriously, and now another one and half year passed by, I've got this ACT framework in a relatively good shape.
Happy coding!
No open issues yet, or sync has not completed.