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 (May, 2016), JHipster has:
npm install -g yo
npm install -g generator-jhipster
And use the embedded Maven wrapper to run it
(hot reload of your application will work automatically)
yo jhipster
./mvnw
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
yo jhipster:entity Foo
(Using Docker to run the database)
./mvnw -Pprod package
docker-compose -f src/main/docker/mysql.yml up -d
java -jar target/*.war --spring.profiles.active=prod