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
gulp test
bower install angular
karma start src/test/javascript/karma.conf.js
Hello {{yourName}}!
Hello, world!
./mvnw spring-boot:run
./gradlew bootRun
@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 (March - 2016), the project is 28 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 Gulp and Browsersync. Edit any file and your browser will refresh automatically:
gulp serve
yo jhipster:entity foo
mvn -Pprod package
java -jar target/*.war --spring.profiles.active=prod