Press the right arrow to continue >
End-users requirements have evolved. People are tired of slow, unreactive Web sites. They want:
Those websites should be delivered fast.
Waiting 1 minute for your application to "deploy" is not acceptable anymore
Modern websites should be able to handle huge numbers of concurrent users
All using massive RESTful applications, which will hit your back-end servers hard
yo jhipster
grunt test
bower install angular
karma start src/test/javascript/karma.conf.js
Hello {{yourName}}!
Hello, world!
mvn spring-boot:run
@Service
@Transactional
public class UserService {
@Inject
private UserRepository userRepository;
}
@Entity
public class User implements Serializable {
@Id
private String login;
}
public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, String> {
List<PersistentAuditEvent>
findByPrincipalAndAuditEventDateGreaterThan(String principal, LocalDateTime after);
}
@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class User implements Serializable {
}
@RestController
public class AccountResource {
@RequestMapping(value = "/app/rest/account",
method = RequestMethod.POST)
public void saveAccount(@RequestBody UserDTO userDTO) {
userService.updateUserInformation(userDTO);
}
}
Hello, world
@Timed
public void saveAccount(@RequestBody UserDTO userDTO) {
userService.updateUserInformation(userDTO);
}
At the time of this writing (11/2014), the project is 13 months old:
npm install -g yo
npm install -g generator-jhipster
yo jhipster
mvn spring-boot:run
Live reload of your client-side code (HTML, CSS, JavaScript) works thanks to Grunt. Edit any file and your browser will refresh automatically:
grunt serve
yo jhipster:entity foo
mvn -Pprod package
cd target/
java -jar jhipster-0.0.1-SNAPSHOT.war --spring.profiles.active=prod